001 Action / RPG Maker


Vehicle

From Wiki001

(Redirected from Vehicle Events)
Jump to: navigation, search

A vehicle is a mode of transportation that can be used by characters in a game. Like characters, it can move around and interact with objects. It is created from a single vehicle resource.

Contents

Options

Direction
This is the angle your vehicle is positioned.
Texture
Is the vehicle resource this vehicle is going to use.
Disable Collisions (box)
Checking it will make your vehicle ignore walls, trees, etc. It will just move through them. Good for making ghost vehicles
Disable Lighting (box)
Checking it will make your vehicle ignore the map lighting. If your map is a dark road, one car with disabled lighting will still shine like.. a LOT!
Color
Is the color of the affected parts of your vehicle.
Opacity
This is how visible your vehicle is. Scrolling to the left is invisible, center is half-visible and right is completely visible.
Glow
The glowing color of the vehicle.
Flip Vertically (box)
Will make your vehicle show upside-down. Movements are NOT changed.
Flip Horizontally (box)
Will make your vehicle exchange right and left. Movements are NOT changed.
Display Shadow (box)
Unchecking this, your vehicle will be shadowless.
Invisible
Checking this box will erase the character's image. It can still be hit, though.

Miscellaneous Properties

Health
How much life your vehicle has. It explodes (with an unchanged Vehicle Death system script when reached zero (if STARTED with zero, vehicle is indestructible). The maximum speed of the vehicle will decrease as you damage the vehicle, up to one third of its original maximum velocity.
Gas
This is the fuel of your vehicle, represented by a fuel-meter in the lower-right part of your screen, in the HUD. When it reaches the empty mark, the vehicle can no longer be moved. In the case of a flying vehicle, it may not have enough velocity to stay in the air, and fall into the ground (and crash). The use of gas is in the proportion of 10 gas points per second. If started with zero, vehicle will have unlimited fuel.
Required Key
If key is set to other than none, you'll need the required item to enter and drive the car.

Triggers

Attempted To Enter Vehicle
Add the scripting you like BEFORE the Control Vehicle event.
Player Exited Vehicle
This is triggered when the player exits the current vehicle.
Destroyed
Start an event when this vehicle is destroyed.
Hit By Weapon Used By Player
This is triggered when the player hits this vehicle.
Hit By Weapon Used By Computer
This is triggered when a NPC hits this vehicle.

Scripting

Events

Properties

Able to Move
Non-zero if the vehicle is able to move.
Driver
Name of character driving the vehicle.
Vehicle Color
Color of the vehicle.
Vehicle Direction
Direction in radians of the angle the vehicle is rotated.
Face
Non-zero if the vehicle is affected by light.
Health
Current health.
Gas Level
Number of gas units remaining.
Current Map
Name of the map where the vehicle is in.
Maximum Health
Base number of the health.
Maximum Gas Level
Number of maximum units of gas available to the vehicle.
Name
Name of the vehicle, which can be used to identify it when using "relate" and "this".
Invisible
Non-zero if the vehicle is invisible.
Invincible
Non-zero if the vehicle has no collision.
Visible Shadow
Non-zero if the vehicle has a shadow.
Shadow Color
Color of the shadow.
Vehicle Glow
Glowing color of the vehicle.
X Position, Y Position and Z Position
Current position.
Personal tools