Details 
Title: Events Set - Vehicle
Summary: Allows you to manipulate vehicles with events
Author: z0w0
Submitted By: HansonBot
Date Submitted: Mon Dec 28, 2009 1:36 pm
Description: 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.

: Equal to 1 if the player is in a vehicle (driver or non-driver) otherwise equal to 0.
: 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.
 

File Information 
Supported Games: Blockland v20
Version: v3 (View Changes)
Filesize: 2.31 kB
Filename: Event_Vehicle.zip
Total Downloads: 12
Ratings:
Rating: 5 (1 rating submitted)Rating: 5 (1 rating submitted)Rating: 5 (1 rating submitted)Rating: 5 (1 rating submitted)Rating: 5 (1 rating submitted)  1 Rating
 

 
This file has been approved by our moderators.
This means it appears to be safe to use.
Download Events Set - Vehicle
 


Service revived by the B4v21 Team.
Designed by Vjacheslav Trushkin and modified by RTB.