Author Topic: Gartanium's questions -> getvelocity script help  (Read 464 times)


Its late, I can't figure anything out. Help would be appreciated :D

Code: [Select]
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
}

%targetvelocity = %targetname.player.getVelocity();

%targetname is the client, if you want the player object, use %targetname.player