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
help with Addprop?
Dizturbed Offline
Member

Posts: 160
Threads: 39
Joined: Jun 2011
Reputation: 0
#1
help with Addprop?

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

07-12-2011, 12:48 AM
Find
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#2
RE: help with Addprop?

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:
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

[Image: 44917299.jpg]Dubstep <3
07-12-2011, 10:51 AM
Find
Dizturbed Offline
Member

Posts: 160
Threads: 39
Joined: Jun 2011
Reputation: 0
#3
RE: help with Addprop?

thanks for the help dude!


07-12-2011, 11:33 AM
Find




Users browsing this thread: 1 Guest(s)