EpicLisbe
Junior Member
Posts: 13
Threads: 4
Joined: Dec 2011
Reputation:
0
|
How to do flying body ?
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
|
|
02-10-2012, 06:41 PM |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
RE: How to do flying body ?
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 |
|
EpicLisbe
Junior Member
Posts: 13
Threads: 4
Joined: Dec 2011
Reputation:
0
|
RE: How to do flying body ?
(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 |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
RE: How to do flying body ?
(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.
|
|
02-10-2012, 06:48 PM |
|
JenniferOrange
Senior Member
Posts: 424
Threads: 43
Joined: Jun 2011
Reputation:
33
|
RE: How to do flying body ?
Ba-da bing, ba-da boom.
|
|
02-11-2012, 02:20 AM |
|
Havi
Junior Member
Posts: 5
Threads: 0
Joined: Mar 2011
Reputation:
0
|
RE: How to do flying body ?
I see people like my flying jesus...
|
|
02-11-2012, 10:46 AM |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
RE: How to do flying body ?
(02-11-2012, 10:46 AM)Havi Wrote: I see people like my flying jesus... ?
|
|
02-11-2012, 10:52 AM |
|
Havi
Junior Member
Posts: 5
Threads: 0
Joined: Mar 2011
Reputation:
0
|
RE: How to do flying body ?
(02-11-2012, 10:52 AM)flamez3 Wrote: (02-11-2012, 10:46 AM)Havi Wrote: I see people like my flying jesus...
?
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.
|
|
02-11-2012, 04:05 PM |
|
|