Info vehicle spawn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
{{wrongtitle|title=info_vehicle_spawn}}
{{DISPLAYTITLE:info_vehicle_spawn}}
{{Synergy}} '''info_vehicle_spawn''' is a [[point entity]] available in [[Synergy]].
{{Synergy}} '''info_vehicle_spawn''' is a [[point entity]] available in [[Synergy]].
It spawns a vehicle for each player.
It spawns a vehicle for each player.
{{bug|Multiple instances of this entity may causes crashes under Linux. {{confirm}}}}
{{bug|Multiple instances of this entity may causes crashes under Linux. {{confirm}}}}
==Entity Description==
==Entity Description==
This entity spawns vehicles entities at its origin. Using an 'ownership' method, players will 'own' the first vehicle they enter, thus preventing other players from using it if the player exits it. Idle vehicles will appear translucent to players who do not 'own' it.
This entity spawns vehicles entities at its [[origin]]. Using an 'ownership' method, players will 'own' the first vehicle they enter, thus preventing other players from using it if the player were to exit it later on. Unoccupied vehicles will appear translucent to players who do not 'own' it.


==Keyvalues==
==Keyvalues==
Line 13: Line 13:
: 2 : Jalopy
: 2 : Jalopy
: 3 : MP
: 3 : MP
{{KV|RespawnVehicle|choices|Deletes the player's vehicle when they die, and respawns it once the player respawns.}}
{{KV|RespawnVehicle|choices|Deletes the player's vehicle when they die, and respawns it at this entity's origin once the player respawns.}}
{{KV|VehicleScript|string|Vehicle Script File. (ex. scripts/vehicles/jeep_test.txt)}}
{{KV|VehicleScript|string|Vehicle Script File. (ex. scripts/vehicles/jeep_test.txt)}}
{{KV|VehicleSize|int|Radius at which active vehicle must exit before spawning the next vehicle.}}
{{KV|VehicleSize|int|Radius at which active vehicle must exit before spawning the next vehicle.}}
Line 22: Line 22:
{{IO|Enable|Starts spawning new vehicles.}}
{{IO|Enable|Starts spawning new vehicles.}}
{{IO|Disable|Stops spawning new vehicles.}}
{{IO|Disable|Stops spawning new vehicles.}}
{{IO|MoveSpawn|Moves the origin to the specified [[info_target]]|param=string|nofgd=1}}
{{IO|MoveSpawn|Sets the origin and angles with the specified [[info_target]]|param=string|nofgd=1}}
{{I Targetname}}
{{I Targetname}}


Line 30: Line 30:


==See also==
==See also==
*[[Synergy_Entities]]
*[[Synergy_Entities|Synergy Entity List]]

Revision as of 19:56, 10 November 2011

Synergy info_vehicle_spawn is a point entity available in Synergy. It spawns a vehicle for each player.

Icon-Bug.pngBug:Multiple instances of this entity may causes crashes under Linux. [confirm]  [todo tested in ?]

Entity Description

This entity spawns vehicles entities at its origin. Using an 'ownership' method, players will 'own' the first vehicle they enter, thus preventing other players from using it if the player were to exit it later on. Unoccupied vehicles will appear translucent to players who do not 'own' it.

Keyvalues

StartEnabled ([todo internal name (i)]) <choices>
Initial state of the vehicle spawn.
VehicleType ([todo internal name (i)]) <choices>
Type of vehicle this spawn will use.
0 : Jeep
1 : Airboat
2 : Jalopy
3 : MP
RespawnVehicle ([todo internal name (i)]) <choices>
Deletes the player's vehicle when they die, and respawns it at this entity's origin once the player respawns.
VehicleScript ([todo internal name (i)]) <string>
Vehicle Script File. (ex. scripts/vehicles/jeep_test.txt)
VehicleSize ([todo internal name (i)]) <integer>
Radius at which active vehicle must exit before spawning the next vehicle.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Inputs

Enable
Starts spawning new vehicles.
Disable
Stops spawning new vehicles.
MoveSpawn <stringRedirectInput/string> !FGD
Sets the origin and angles with the specified info_target


Outputs

OnSpawnVehicle
Fired when a vehicle is spawned.


See also