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
(Script help) - Removing or manipulating gravity physics
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#3
RE: (Script help) - Removing or manipulating gravity physics

(03-02-2012, 01:41 AM)Strembitsky Wrote: You can set the static physics of it through scripts.

You can also push it with scripts.

Welcome to the world of scripting: http://wiki.frictionalgames.com/hpl2/amn..._functions
Thanks for your help, I'm already in the world of scripting Smile

"void SetPropStaticPhysics(string& asName, bool abX);

Activates/deactivates the physics of a prop. Setting as true will make entities static in midair.
"

Its the 'static in midair' part that gets me. Does that mean the thing the player will not be able to interact with it physically? The effect I'm looking for is a lack of gravity, having a truely static object would rather break the impression of a lack of gravity.

I figured you could use AddProp/BodyForce to fake it, but getting the effect just right would take sometime, and if it was never intended for this then there could be some 'unforseen consequences' when the player tries to grab or move the thing

03-02-2012, 02:10 AM
Find


Messages In This Thread
RE: (Script help) - Removing or manipulating gravity physics - by Adrianis - 03-02-2012, 02:10 AM



Users browsing this thread: 1 Guest(s)