Squirrel/Server/Functions/Vehicles/Alpha
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with '{{Squirrel/Title|Vehicle.Alpha}} {{ScriptingChangesIn0.1.0.10}} This ''Vehicle'' class member variable sets/returns the alpha of the vehicle. Note that setting the alpha value ca…') |
(→‎Example 1. Returning) |
||
Line 15: | Line 15: | ||
{{Squirrel/NeedsExample}} | {{Squirrel/NeedsExample}} | ||
− | + | same as pPlayer.Alpha :D im too lazy:P | |
<code lang="squirrel"> | <code lang="squirrel"> |
Latest revision as of 05:58, 22 June 2015
This Vehicle class member variable sets/returns the alpha of the vehicle. Note that setting the alpha value can be tricky and it can cause unexpected effects on most vehicle models (such as unaffected wheels).
[edit] Syntax
int Vehicle.Alpha
Vehicle.Alpha = int alpha
[edit] Arguments
- alpha - The alpha value you wish to set (0...255)
[edit] Example 1. Returning
This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
same as pPlayer.Alpha :D im too lazy:P
-- todo
[edit] Notes
-- List of used functions and other notes here.
[edit] Example 2. Setting
This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
Some explanation here too
-- todo
[edit] Notes
-- List of used functions and other notes here.
[edit] Related Functions
- CreateVehicle
- FindVehicle
- GetClosestVehicle
- GetVehicleCount
- GetVehicleHandlingData
- GetVehicleIDFromName
- GetVehicleName
- SetVehicleHandlingData
- Vehicle.Alpha
- Vehicle.Angle
- Vehicle.Colour1
- Vehicle.Colour2
- Vehicle.Driver
- Vehicle.EngineDamage
- Vehicle.Explode
- Vehicle.Fix
- Vehicle.GetAddon
- Vehicle.GetPassenger
- Vehicle.GetHandlingData
- Vehicle.GetWheelStatus
- Vehicle.Health
- Vehicle.ID
- Vehicle.IdleRespawnTime
- Vehicle.IdleTime
- Vehicle.LightState
- Vehicle.Locked
- Vehicle.Marker
- Vehicle.MarkerScale
- Vehicle.MarkerSprite
- Vehicle.Model
- Vehicle.OneTime
- Vehicle.PassengerCount
- Vehicle.Pos
- Vehicle.Remove
- Vehicle.Respawn
- Vehicle.RespawnTime
- Vehicle.RGBColour1
- Vehicle.RGBColour2
- Vehicle.SetHandlingData
- Vehicle.SetWheelStatus
- Vehicle.SpawnAngle
- Vehicle.SpawnPos
- Vehicle.SetAddon
- Vehicle.SetEngineState
- Vehicle.SetRadio
- Vehicle.Siren
- Vehicle.SirenLight
- Vehicle.TaxiLight
- Vehicle.Velocity
- Vehicle.VirtualWorld
- Vehicle.Wrecked