Blockland Forums > Modification Help
Gartanium's questions -> getvelocity script help
Pages: (1/1)
Gartanium:
Its late, I can't figure anything out. Help would be appreciated :D
--- Code: ---function serverCmdTest(%client, %Target)
{
%Targetname = FindClientByName(%Target);
if(isObject(%Targetname))
{
%Targetvelocity = getvelocity(%Targetname); // here is were I probley messed up
messageAll(%client, "", %Targetvelocity);
}
else
{
messageAll(%client, "", "This person does not exist!!"); // I also don't receive a message after typing /Test gartanium to see if I exist or not when loading the
} // game
}
--- End code ---
Headcrab Zombie:
%targetvelocity = %targetname.player.getVelocity();
%targetname is the client, if you want the player object, use %targetname.player
Gartanium:
thanks
Pages: (1/1)