Info vehicle spawn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (TODO)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:info_vehicle_spawn}}
{{this is a|point entity|game=Synergy|name=info_vehicle_spawn}} It spawns a vehicle for each player. 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.
{{Synergy}} '''info_vehicle_spawn''' is a [[point entity]] available in [[Synergy]].
{{bug|hidetested=1|Multiple instances of this entity may causes crashes under Linux. {{confirm}}}}
It spawns a vehicle for each player.{{todo|Make [[Template:Synergy point]]}}
{{bug|Multiple instances of this entity may causes crashes under Linux. {{confirm}}}}
==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==
==Keyvalues==
{{KV|StartEnabled|choices|Initial state of the vehicle spawn.}}
{{KV StartEnabled|Initial state of the vehicle spawn.}}
{{KV|VehicleType|choices|Type of vehicle this spawn will use.}}
{{KV|VehicleType|choices|Type of vehicle this spawn will use.}}
: 0 : Jeep
: 0 : Jeep
Line 20: Line 16:


==Inputs==
==Inputs==
{{IO|Enable|Starts spawning new vehicles.}}
{{I|Enable|Starts spawning new vehicles.}}
{{IO|Disable|Stops spawning new vehicles.}}
{{I|Disable|Stops spawning new vehicles.}}
{{IO|MoveSpawn|Sets the origin and angles with the specified [[info_target]]|param=string|nofgd=1}}
{{I|MoveSpawn|Sets the origin and angles with the specified [[info_target]]|param=string|nofgd=1}}
{{I Targetname}}
{{I Targetname}}


==Outputs==
==Outputs==
{{IO|OnSpawnVehicle|Fired when a vehicle is spawned.}}
{{O|OnSpawnVehicle|Fired when a vehicle is spawned.}}
{{O Targetname}}
{{O Targetname}}


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

Latest revision as of 15:52, 23 May 2025

info_vehicle_spawn is a point entity available in Synergy Synergy. It spawns a vehicle for each player. 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.

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

Keyvalues

Start Enabled (StartEnabled) <boolean>
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