Squirrel/Server/Functions/Players/SetVehicleEnterDoor
From Liberty Unleashed Wiki
(Difference between revisions)
m (fail link) |
m |
||
Line 10: | Line 10: | ||
* '''door''' - This is the ID of the door to use to override. For a list of doors, check [[Squirrel/Server/Constants#Vehicle_Doors|here]] | * '''door''' - This is the ID of the door to use to override. For a list of doors, check [[Squirrel/Server/Constants#Vehicle_Doors|here]] | ||
− | |||
== Example == | == Example == |
Latest revision as of 23:30, 28 May 2010
This function overrides the players target door when they start entering a vehicle.
[edit] Syntax
bool Player.SetVehicleEnterDoor( int door )
[edit] Arguments
- door - This is the ID of the door to use to override. For a list of doors, check here
[edit] Example
This example will force the player enter a vehicle as a driver.
function onPlayerEnteringVehicle( player, vehicle, door ) { player.SetVehicleEnterDoor( DOOR_DRIVER ); return 1; }
[edit] Notes
The call onPlayerEnteringVehicle was used in in this example. More info about it in the corresponding page.
[edit] Related Functions
- FindPlayer
- GetClosestPlayer
- Player.Alpha
- Player.Angle
- Player.Armour
- Player.Cash
- Player.Class
- Player.ClearWeapons
- Player.Colour
- Player.ColouredName
- Player.EnterVehicle
- Player.ExitVehicle
- Player.ForceToSpawnScreen
- Player.Frozen
- Player.GetBoundariesLower
- Player.GetBoundariesUpper
- Player.GetIgnored
- Player.Health
- Player.ID
- Player.IP
- Player.Immune
- Player.Island
- Player.LUID
- Player.Marker
- Player.MarkerScale
- Player.MarkerSprite
- Player.Muted
- Player.Name
- Player.Nametag
- Player.NametagColour
- Player.Ping
- Player.Pos
- Player.RemoveFromVehicle
- Player.RemoveLimb
- Player.Score
- Player.SetAnim
- Player.SetBoundaries
- Player.SetIgnored
- Player.SetIgnoredBy
- Player.SetVehicleEnterDoor
- Player.SetWeapon
- Player.Skin
- Player.Spawn
- Player.Spawned
- Player.Team
- Player.Train
- Player.Vehicle
- Player.VehicleSeat
- Player.Velocity
- Player.VirtualWorld
- Player.WantedLevel
- Player.Weapon
- Player.SetWeapon
- Player.WeaponAmmo
- Player.WeaponState