Post: How to set dvars on other players?
01-04-2016, 01:29 AM #1
Daymon
Keeper
(adsbygoogle = window.adsbygoogle || []).push({}); I'm having problems doing this, anyone help me out?
(adsbygoogle = window.adsbygoogle || []).push({});
01-04-2016, 01:30 AM #2
itsSorrow
In my man cave
Originally posted by Daymon View Post
I'm having problems doing this, anyone help me out?


the same way u do on urself....
01-04-2016, 01:38 AM #3
Daymon
Keeper
Originally posted by GentleSlugger View Post
the same way u do on urself....


I've tried that, doesn't work.
01-04-2016, 01:40 AM #4
itsSorrow
In my man cave
Originally posted by Daymon View Post
I've tried that, doesn't work.


whats ur code mam
01-04-2016, 01:42 AM #5
Daymon
Keeper
Originally posted by GentleSlugger View Post
whats ur code mam


    
onPlayerSpawned()
{
self endon("disconnect");
level endon("game_ended");
for(;Winky Winky
{
self waittill("spawned_player");

// Will appear each time when the player spawn, that's just an exemple.
self iprintln("^1Knife when you want to start playing!");
test();

}
}

test()
{
for(;Winky Winky
{
if(self MeleeButtonPressed())
{
self iprintln(getName());
setDvar("cg_fov", "90");
}
wait .05;
}
}
01-04-2016, 02:03 AM #6
BullyWiiPlaza
Climbing up the ladder
You can't, unless there is a client function for setting a dvar.
    setDvar("cg_fov", "90");

is always host only. But the following can be used in your specific example:
    self setClientFov(90);

Enjoy

The following user thanked BullyWiiPlaza for this useful post:

Daymon
01-05-2016, 10:21 PM #7
anthonything
Space Ninja
Originally posted by BullyWiiPlaza View Post
You can't, unless there is a client function for setting a dvar.
    setDvar("cg_fov", "90");

is always host only. But the following can be used in your specific example:
    self setClientFov(90);

Enjoy


player setclientdvar("variable", "Value");
01-05-2016, 10:54 PM #8
itsSorrow
In my man cave
Originally posted by anthonything View Post
player setclientdvar("variable", "Value");


you can't use setclientdvar in bo2...
01-05-2016, 10:57 PM #9
BullyWiiPlaza
Climbing up the ladder
Originally posted by GentleSlugger View Post
you can't use setclientdvar in bo2...

Yeah, exactly
01-06-2016, 06:29 PM #10
You cannot set dvars for other players.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo