Scripting/Squirrel/Functions/Vehicle.IsGhost

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

Get or Set the vehicle `IsGhost` boolean property. Ghost cars don't collide with other vehicles or players but still interact with the world.

Syntax

Vehicle.IsGhost

Arguments

  • None

Example

1. Set vehicle to `ghost`

Vehicle.IsGhost = true;

2. Unset vehicle `ghost` property

Vehicle.IsGhost = false;

3. Probe to see whether or not a vehicle is a ghost

local vehicleIsGhost = Vehicle.IsGhost;

Related Functions