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
How To Make An Object Fly Once I Trigger It?
theDARKW0LF Offline
Member

Posts: 150
Threads: 17
Joined: Sep 2010
Reputation: 0
#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


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



Users browsing this thread: 1 Guest(s)