Raised This Month: $ Target: $400
 0% 

Calculating fall distance


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 02-05-2009 , 01:43   Re: Calculating fall distance
Reply With Quote #3

If the fall distance should be displayed in units, how can I make that? Lets say you jumped from a building and landed on the ground, then a HUD msg pops up and shows the fall distance.

Code:
set_hudmessage(255, 0, 0, -1.0, 0.8, 0, 6.0, 5.0, 0.1, 0.4, -1);
show_hudmessage(id, "Fall Distance: %s", distance);
Something like that would pop up. How do I calculate the distance? The snippet you gave me exo, didn't really help me, yes, I suck at scripting, but if you could explain more, I would be capable of understanding. Thanks anyway.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode