Frictional Games Forum (read-only)

Full Version: help with Addprop?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
could someone please help me with:


void AddPropForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem);
void AddPropImpulse(string& asName, float afX, float afY, float afZ, string& asCoordSystem);
void AddBodyForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem);
void AddBodyImpulse(string& asName, float afX, float afY, float afZ, string& asCoordSystem);

?

dunno what to do with em, i know that they kan open things, push things, etc..

But i dunno how to execute them! :L

please help a scripting noobie out! Sleepy
Well "AddBodyForce" pushes the player away (pretty obvious) and here's a tip to get the coordinates, duplicate the item/player you want to be pushed, drag it to the point you want him to be pushed to then you just take the coordinates.
For example:
Code:
AddBodyForce("Player", 0.0f, 0.0f, 0.0f, "world");

PropForce is the same as BodyForce but it pushes an object.

I Dunno the difference betwen an Impulse and the Force but yea...If you're gonna use impulse take some high numbers such as 500.0 or maybe even 5000.0.

Test some and you'll get it Tongue
thanks for the help dude!