Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Lua scripted bomb drop (Faking physics) MTA:SA DM 1 Dp2

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,995
Loading...
Alert icon
Sign in or sign up now!
Alert icon
Ratings have been disabled for this video.

Uploaded by on Apr 9, 2008

Here's a sample that shows how to fake GTA world physics on objects. This is one of the earlier versions that I am using in my game mode. It demonstrates the faking of a dropping bomb with correct velocity over x, y and z axis. Unlike most falling bomb scripts this does not use the moveObject function which in turn allows it to follow more accurate trajectories (curved falling direction). It also does not take the altitude/distance to ground parameter into account to determine when to detonate.

More info at: http://mtascripting.blogspot.com/

Category:

Entertainment

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (acemtasa)

  • How did you get setElementVelocity() to set the velocity of an element other than a car? Does it only work on some objects or something? I had to resort to the flowerpot :P

  • I didn't set the object's velocity. The object is attached to an invisible rc vehicle and the rc vehicle is attached and detached from the aircraft. What you actually see is the rc vehicle falling down with a bomb model object attached to it.

  • How did you make it blow up when it hits the ground? I thought about a dynamic timer that guesses when it will hit the ground, but that doesn't seem effective. onVehicleDamage() might work if it's attached to an RC car.. Thanks for the reply.

  • Once the car is detached a timer starts that checks the vehicle's velocity every 50 ms. The bomb is triggered when the velocity over the x, y and z-axis equals zero (vehicle stopped moving) or the velocity over the z-axis becomes greater than zero (vehicle stopped travelling down).

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • im sorta newby with lua scripting but i understand most lines, i learned VIA roblox, its a suprisingly good way to learn.

  • Well done

  • It looks realy cool, can you maybe upload the script, so i can look at it to learn, i am a little newbie by Lua mta scriptin.

  • Thats pretty ingenious. :D Nice job!

  • very nice

  • pretty nice:)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more