simple question, how would I go about making it so whenever a certain playertype shoots/jumps(i dont care which) his x, y, and z are added to an amount getrandom(-100,100) ?
i tried this but failed horribly.
datablock PlayerData(Playerghost : PlayerStandardArmor)
{
uiName = "Ghost Player";
};
package ghostyay
{
function Playerghost::ontrigger(%this, %obj, %triggerNum, %val)
{
%this.z+=getrandom(-100,100);
%this.y+=getrandom(-100,100);
%this.x+=getrandom(-100,100);
}
};
activatepackage(ghostyay);
anyhelp is appreciated. thank you for your time.