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
Making an entity fly
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#3
RE: Making an entity fly

(05-26-2011, 08:18 PM)Apjjm Wrote: In the case of any non-player entity, you will want:
AddPropForce("<object name here>", 0, <force here>, 0, "world");
Being called once every 1/60th of a second (by a timer). To work out what "<force>" is you are going to have to just experiment, as it is different for every object. The "AddPlayerBodyForce" is exactly the same except the first argument is omitted, as the object is already specified as the player.

The thing is that I'm gonna do so when you enter a door and you walk in you're gonna get pushed out of the room and the door with lock.

[Image: 44917299.jpg]Dubstep <3
(This post was last modified: 05-26-2011, 08:23 PM by xtron.)
05-26-2011, 08:22 PM
Find


Messages In This Thread
Making an entity fly - by xtron - 05-26-2011, 08:11 PM
RE: Making an entity fly - by Apjjm - 05-26-2011, 08:18 PM
RE: Making an entity fly - by xtron - 05-26-2011, 08:22 PM
RE: Making an entity fly - by Apjjm - 05-26-2011, 11:07 PM
RE: Making an entity fly - by xtron - 05-27-2011, 02:27 PM
RE: Making an entity fly - by Apjjm - 05-27-2011, 03:28 PM
RE: Making an entity fly - by xtron - 05-27-2011, 11:04 PM



Users browsing this thread: 4 Guest(s)