Scripting/Squirrel/Functions/Vehicle.IsGhost: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
Ultimatejugo (talk | contribs) (Created page with " == Syntax == <pre.Vehicle.IsGhost = true;</pre> <pre>Vehicle.IsGhost = false;</pre>") |
(Add description and sloppy examples.) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
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 == | == Syntax == | ||
< | <source lang=squirrel>Vehicle.IsGhost</source> | ||
< | |||
== Arguments == | |||
* ''None'' | |||
== Example == | |||
1. Set vehicle to `ghost` | |||
<source lang=squirrel> | |||
Vehicle.IsGhost = true; | |||
</source> | |||
2. Unset vehicle `ghost` property | |||
<source lang=squirrel> | |||
Vehicle.IsGhost = false; | |||
</source> | |||
3. Probe to see whether or not a vehicle is a ghost | |||
<source lang=squirrel> | |||
local vehicleIsGhost = Vehicle.IsGhost; | |||
</source> | |||
== Related Functions == | |||
{{Scripting/Squirrel/Functions/Vehicle_Functions}} | |||
[[Category:Scripting/Squirrel/Functions/Vehicle_Functions]] |
Latest revision as of 10:39, 26 April 2019
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
- ResetAllVehicleHandling
- IsHandlingRuleSet
- SetHandlingRule
- GetHandlingRule
- ResetHandlingRule
- ResetVehicleHandling
- Vehicle.AddRelTurnSpeed
- Vehicle.AddSpeed
- Vehicle.AddTurnSpeed
- Vehicle.Alarm
- Vehicle.Angle
- Vehicle.Colour1
- Vehicle.Colour2
- Vehicle.Damage
- Vehicle.Delete
- Vehicle.Driver
- Vehicle.EulerAngle
- Vehicle.EulerSpawnAngle
- Vehicle.Fix
- Vehicle.GetHandlingData
- Vehicle.GetOccupant
- Vehicle.GetPart
- Vehicle.GetTyre
- Vehicle.Health
- Vehicle.ID
- Vehicle.Immunity
- Vehicle.IsGhost
- Vehicle.IsHandlingSet
- Vehicle.Kill
- Vehicle.Lights
- Vehicle.Locked
- Vehicle.Model
- Vehicle.Pos
- Vehicle.Radio
- Vehicle.RadioLocked
- Vehicle.RelativeSpeed
- Vehicle.RelativeTurnSpeed
- Vehicle.ResetAllHandling
- Vehicle.ResetHandlingData
- Vehicle.Respawn
- Vehicle.RespawnTimer
- Vehicle.Rotation
- Vehicle.SetFlatTyres
- Vehicle.SetHandlingData
- Vehicle.SetPart
- Vehicle.SetTyre
- Vehicle.Siren
- Vehicle.SpawnAngle
- Vehicle.SpawnPos
- Vehicle.Speed
- Vehicle.StreamedForPlayer
- Vehicle.SyncSource
- Vehicle.SyncType
- Vehicle.TurnSpeed
- Vehicle.TurretRotation
- Vehicle.World
- Vehicle.Wrecked