Frictional Games Forum (read-only)
help with Addprop? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: help with Addprop? (/thread-9092.html)



help with Addprop? - Dizturbed - 07-12-2011

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


RE: help with Addprop? - xtron - 07-12-2011

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


RE: help with Addprop? - Dizturbed - 07-12-2011

thanks for the help dude!