OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bedges on 01 Mar 2005, 01:50:33
-
or are the x/y positional elements compass-based according to the map?
i only ask, as i need to know if a vehicle is travelling at a speed forwards, too fast to stop beyond a certain point - my loons are still getting run over i'm afraid, and (for the time being) my sadistic tendencies are quite subdued.....
for the time being, my pretties... >cacklecackle<
-
Not relative. It goes by compass directions, good when you're making trucks race across a certain Nogova bridge ;), but bad when you want the unit to get pushed forward in the current direction he is facing. Though there are ways around this, using some math and getdir commands. ;)
-
oh, but not just any math. trigonometry
basically if you know how to use sin, cos, and tan (and asin acos atan) you can control velocities by direction
if not, THobson will be in shortly to post an entire page of explaination/examples/who knows what
You know its true THobson, its an undeniable fact ;D
-
THobson will be in shortly to post an entire page of explaination/examples/who knows what
You know its true THobson, its an undeniable fact
;DLol:
Ready and waiting. I have had to post it a lot recently - very topical at the moment it seems.
-
It is a curiosity of the forum. The probability of a question coming up is significantly higher if it has come up a lot recently.
-
heheh... mhmm. to his credit, it's due to THobson's clear explanations of trig use in ofp that i already knew how that's accomplished ;)
thanks, i can now save the loons from carmageddon. all the more to shoot at....