Scripting/Squirrel/Functions/Vehicle.IsGhost

From Vice City Multiplayer
Revision as of 10:39, 26 April 2019 by Dracc (talk | contribs) (Add description and sloppy examples.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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