Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Make An Object Fly Once I Trigger It?
Author Message
theDARKW0LF Offline
Member

Posts: 150
Joined: Sep 2010
Reputation: 0
Post: #10
RE: How To Make An Object Fly Once I Trigger It?

Ok so what you do is add "AddPropImpulse(string& asName, float afX, float afY, float afZ, string& asCoordSystem);" into your script file, replacing the "string& asName" with the name of the entity in question, and replace the "float afX, float afY, and float afZ" with the amount of force (in numbers) you wish to have applied to the entity in that direction, and leave the "string& asCoordSystem" as "".

So, for instance, with one of my objects it looks like this: AddPropImpulse("crossboo_1", 0, 0, -2, "");

EDIT2: Oh, and make sure that the string is put under (without quotations):
"void OnEnter()
{
}"


Hope that helps!

EDIT: Oh and if you don't mind, give me an Internet if it helped! Big Grin

Check out my custom stories(1)(2)!
09-16-2010 08:14 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How To Make An Object Fly Once I Trigger It? - theDARKW0LF - 09-16-2010 08:14 PM



User(s) browsing this thread: 1 Guest(s)