Frictional Games Forum

Full Version: How to do flying body ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, i wanna do a body that flews to the player but i dont know the script command and i dont know how to check cordinates
I am going to answer this question...No one answer with a negative response after that...k?

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "FlyingBody", true, 1);
}

void FlyingBody(string &in asParent, string &in asChild, int alState)
{
AddPropImpulse("nameofcorpse", afX, afY, afZ, "world");
}

afX - direction along the X-axis
afY - direction along the Y-axis
afZ - direction along the Z-axis
(02-10-2012, 06:45 PM)flamez3 Wrote: [ -> ]I am going to answer this question...No one answer with a negative response after that...k?

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "FlyingBody", true, 1);
}

void FlyingBody(string &in asParent, string &in asChild, int alState)
{
AddPropImpulse("nameofcorpse", afX, afY, afZ, "world");
}

afX - direction along the X-axis
afY - direction along the Y-axis
afZ - direction along the Z-axis
Yes but where i can see the afx afy and afz


(02-10-2012, 06:47 PM)EpicLisbe Wrote: [ -> ]
(02-10-2012, 06:45 PM)flamez3 Wrote: [ -> ]I am going to answer this question...No one answer with a negative response after that...k?

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "FlyingBody", true, 1);
}

void FlyingBody(string &in asParent, string &in asChild, int alState)
{
AddPropImpulse("nameofcorpse", afX, afY, afZ, "world");
}

afX - direction along the X-axis
afY - direction along the Y-axis
afZ - direction along the Z-axis
Yes but where i can see the afx afy and afz
On the corpse you are trying to throw. It will come up with X, Y and Z axis. Put around 10 in the specified axis you want the corpse to be thrown.

I see people like my flying jesus... Big Grin
(02-11-2012, 10:46 AM)Havi Wrote: [ -> ]I see people like my flying jesus... Big Grin
?
(02-11-2012, 10:52 AM)flamez3 Wrote: [ -> ]
(02-11-2012, 10:46 AM)Havi Wrote: [ -> ]I see people like my flying jesus... Big Grin

?


Well, I guess I was first to ever include a flying corpse in a custom map... (this map wasn't very well made btw.) After that the expression "flying jesus" occurred. Big Grin