(04-01-2013, 11:12 AM)addemod Wrote: Wow, thx 
Got another question, and I can't find the answer for it..
How would I make a npc (like a dead body) fly in where the player stands when they picked up the blabla item. (I know how to do the when picked up item do this and that, but how would I do it flying in?)
The Flying Jesus thing (Where a dead body randomly appears and shout a ear bleeding noise) is not rated good by the community and you will get at least people spamming due to your cheap scares.
SCRIPT:
void OnStart()
{
SetEntityCallbackFunc("key_1", "FlyingJesus");
}
void FlyingJesus(string &in asEntity, string &in type)
{
AddPropForce("DeadBody_body_1", 300000, 0, 0, world);
AddPropImpulse("DeadBody_body_1", 300000, 0, 0, world);
}
/SCRIPT
It actually depends whether it's on the Z or the X Axis, though