Events Set - Vehicle
2 KB, 14 years ago, submitted by
Vehicle Events
Information:
Features:
These input events only work on vehicle spawns.
onVehicleEnter: When a player enters a vehicle and becomes a passenger.
onVehicleLeave: When a player leaves a vehicle and is no longer a passenger.
onVehicleDeath: When a vehicle is blown up.
onVehicleSpawn: When a vehicle spawns.
Vehicle -> addHealth: Adds health to the vehicle. First parameter is the amount to add (negative for damage).
Vehicle -> addVelocity: Adds velocity/speed to the vehicle. First parameter is amount to add.
Vehicle -> destroy: Blows the vehicle up.
Vehicle -> respawn: Respawns the vehicle.
Vehicle -> setColor: Sets the color of the vehicle. First parameter is the color to set it to.
Vehicle -> setHealth: Sets the vehicle's health. First parameter is the amount to set it to.
Vehicle -> setShapeName: Sets the vehicle's shape name (name above object). First parameter is the string to set it to.
Vehicle -> setShapeNameColor: Set the color of the vehicle's shape name. First parameter is the color to set it to.
Vehicle -> setShapeNameDistance: Set the distance of the vehicle's shape name before disappearing. First parameter is the distance to set it to.,
Vehicle -> setVehicleScale: Sets the scale of the vehicle. First parameter is the scale to set it to.
Vehicle -> setVelocity: Sets the vehicle's velocity/speed. First parameter is amount to set it to.
Vehicle -> spawnExplosion: Spawns an explosion on the vehicle. Same parameters as Player -> spawnExplosion.
Vehicle -> spawnProjectile: Spawns a projectile from the vehicle. Same parameters as Player -> spawnProjectile.
Vehicle -> toggleWheel: Removes or restores the vehicle's wheels. First parameter is the wheel/hub slot and the second parameter is a bool saying if the wheel should be there or not. Vehicles without wheels will not be able to drive, only slide.
Vehicle -> unMountDriver: Unmounts the driver of the vehicle from the vehicle.
Vehicle -> unMountPlayer: Unmounts a player from the vehicle. First parameter is the vehicle slot that contains the player you want to mount, or you can tick the bool to unmount all players.
<var:player:isPassenger>: Equal to 1 if the player is in a vehicle (driver or non-driver) otherwise equal to 0.
<var:player:isDriving>: Equal to 1 if the player is driving a vehicle, otherwise equal to 0.
Credits:
Chrono: Some of the methods within this add-on were built from his old Vehicle Events.
off topic:
Lmfao first comment!!!
BUT STILL A gREAT ADD-ON! KEep it going :D
My response: good, needed something like this its fun making an exploding vehicle fly
meh 4/5
w/e either way, im gettin it :P
its maby the most important vehicle event.
Thanks anyway.
(Lets say a YouTube Blockhead wants to make a sick WWII Movie..he needs vehicle touch event but lets say it's out and works..not saying you made but if it was made)
"A truck goes by, ripping up dirt and grass as it goes by..suddenly, the convoy truck gets trapped in a heap of quicksand..what shall they do?"
Making a hold with sand colored..sand-like-bricks and onVehicleTouch-Self-Fakekill (Numba)
For a pretty cool vehicle T
Do it, man!
ALso USAF Airman has it on his server
But hes in the Airforce FOR REAL
That's the stereo addon: /stereo
You need to download it somewhere.
|___ ___|
| |
| |
| |
| |
--- touch T wants a vehicle touch. got it?
Need
OnVehicleTouch
!
!
!
But for V4 make onVehicleTouch and spawnVehicle so that you can pick a car from the list to spawn on that brick :D
/thread
Nice! I love this add-on!
OnVehicalTouch
SetThrottel
SetBreak
SetTurn
I agree too, WE NEED OnVehicleTouch, so i need it for my Action 52 BL server
Not a big surprise youre the poster.
Use ZONE BRICKS and ZONE EVENTS
Get zone bricks and events.
onvehicletouch: when a vehicle touches the brick
good for gas mod
5/5