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

Posts: 63
Threads: 7
Joined: Sep 2010
Reputation: 1
#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


Messages In This Thread
RE: How To Make An Object Fly Once I Trigger It? - by gosseyn - 09-17-2010, 11:44 PM



Users browsing this thread: 1 Guest(s)