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
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#2
RE: Making an entity fly

(05-26-2011, 08:11 PM)xtron Wrote: How to use the function "AddPlayerBodyForce(float afX, float afY, float afZ, bool abUseLocalCoords);" ?


Sorry for spaming this forum with my "help please" shit. But this is my first time making an map ands cripting to Amnesia so I need some help Smile. Thanks for all the help i already got. You guys are lovely.

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.
(This post was last modified: 05-26-2011, 08:18 PM by Apjjm.)
05-26-2011, 08:18 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: 1 Guest(s)