Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help How to do flying body ?
EpicLisbe Offline
Junior Member

Posts: 13
Threads: 4
Joined: Dec 2011
Reputation: 0
#1
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
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
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
Find
EpicLisbe Offline
Junior Member

Posts: 13
Threads: 4
Joined: Dec 2011
Reputation: 0
#3
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
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#4
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
Find
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#5
RE: How to do flying body ?

Try the wiki?
http://wiki.frictionalgames.com/hpl2/tut...ying_jesus

Ba-da bing, ba-da boom.
02-11-2012, 02:20 AM
Find
Havi Offline
Junior Member

Posts: 5
Threads: 0
Joined: Mar 2011
Reputation: 0
#6
RE: How to do flying body ?

I see people like my flying jesus... Big Grin
02-11-2012, 10:46 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#7
RE: How to do flying body ?

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

02-11-2012, 10:52 AM
Find
Havi Offline
Junior Member

Posts: 5
Threads: 0
Joined: Mar 2011
Reputation: 0
#8
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... 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
02-11-2012, 04:05 PM
Find




Users browsing this thread: 1 Guest(s)