new aiplayer(bob){datablock = serverconnection.getcontrolobject().getdatablock(); position = serverconnection.getcontrolobject().getposition();};
spawns a new ai player named bob, at your position
server sided
and client sided if you catch my drift hehehehe
---
deleteDatablocks();
crashes you
---
commandtoserver('teammessagesent',"hi"); //sends message to team
---
random functions and things
pitch(INT); //makes you look up/down at given INT
$mvPitch = INT; //works the same way as pitch(INT);
yaw(INT); //makes you turn left/right at given INT
$mvyaw = INT; //works the same way as yaw(INT);
$mvForwardaction = 1; // equivalent to moveForward(1);
$mvBackwardAction = 1; // equivalent to moveBackward(1);
$mvLeftAction = 1; //equivalent to moveLeft(1);
$mvRightAction = 1;// equivalent to moveRight(1);
eval("things"); //used to do advanced tasks
ex:
$a = "myFunction()";
eval("function "@$a@"{echo(\"OMGCREATEDFUNCTIONWITHVARIABLE\");}");
then try it, in the console type myfunction() and it should echo that