vehicles.PlayerSpawn

From GMod Wiki

Revision as of 20:17, 24 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax vehicles.PlayerSpawn( Player player, String vehicle_type, Vector position, Vector angle )
Where is this used?
Description:
Creates a predefined vehicle.
Returns: Entity vehicle
Part of Library: Vehicles
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Vehicles.PlayerSpawn]Vehicles.PlayerSpawn [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionCreates a vehicle 64 units in front of the player.
Used onNewerServer.png
Code
vehicle = vehicles.PlayerSpawn( player, "jeep", player:GetPos() + player:GetAngles():Forward() * 64, player:GetAngles():Up() );
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox