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

Privacy Policy


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
gosseyn Offline
Member

Posts: 63
Joined: Sep 2010
Reputation: 1
Post: #12
RE: How To Make An Object Fly Once I Trigger It?
i have problems making this to run well, this is what i do(i try to make a chair fly a bit in the air when player collide with a script area) :

i create the function that will make the chair fly :
void ChairFly()
{
AddPropImpulse("MyChair", 0.0f, 15.0f, 0.0f, "world");
}

and then inside OnStart i add this :
AddEntityCollideCallback("player", "AreaChairFly", "ChairFly", true, 1);

What is wrong? Thanks!
09-17-2010 11:44 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? - gosseyn - 09-17-2010 11:44 PM



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