Lua scripted bomb drop (Faking physics) MTA:SA DM 1 Dp2
Loading...
4,995
Loading...
Ratings have been disabled for this video.
Uploader Comments (acemtasa)
see all
All Comments (8)
-
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...
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
alexOfDeath 3 years ago
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.
acemtasa 3 years ago
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.
alexOfDeath 3 years ago
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).
acemtasa 3 years ago