Aloah Guys,
I am searching for a forge mod (like Azumikkels roll in "Roll the Dice V2) where you can grab objects (entity) and move them around exspecially I am looking for a script to move dropped CPs and spawned CPs around...
After a bit research I found this:
Now I just want to ask if I can just put this into my mod and link it to the onPlayerspawned to get it working or do I have to put anything else in ?
I am searching for a forge mod (like Azumikkels roll in "Roll the Dice V2) where you can grab objects (entity) and move them around exspecially I am looking for a script to move dropped CPs and spawned CPs around...
After a bit research I found this:
Code:
pickup()
{
self endon("death");
for(;;)
{
while(self fragbuttonpressed())
{
trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self);
while(self fragbuttonpressed())
{
trace["entity"] setorigin(self gettagorigin("j_head")+anglestoforward(self getplayerangles())*200);
trace["entity"].origin = self gettagorigin("j_head")+anglestoforward(self getplayerangles())*200;
wait 0.05;
}
}
}
Now I just want to ask if I can just put this into my mod and link it to the onPlayerspawned to get it working or do I have to put anything else in ?