Emp vehicle spawner: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Step 3 - Create a trigger: clarifying on the trigger_multiple being a brush-based entity) |
||
Line 25: | Line 25: | ||
[[Image:Step2spawner.jpg]] | [[Image:Step2spawner.jpg]] | ||
=== Step 3 - Create a trigger === | === Step 3 - Create a trigger === | ||
In this case, a [http://developer.valvesoftware.com/wiki/Trigger_multiple trigger_multiple] brush-based entity is used. | |||
[[Image:Step3trigger.jpg]] | [[Image:Step3trigger.jpg]] | ||
Revision as of 04:03, 14 July 2010
Description
This entity is used in combination with emp_vehicle_preset give mappers the ability to spawn vehicles on demand. When the SpawnVehicle input is triggered, this entity will search for the specified emp_vehicle_preset and create a vehicle with the current location, orientation, and velocity.
Parameters
- Name
- Given name so other entities can refer to this
- Parent
- Entity to which this entity's movements are tied.
- Angles
- Orientation of the current entity (transfers to spawned vehicles)
Inputs
- SpawnVehicle <string>
- Searches for an map entity with the name specified in the parameter. If the entity is an emp_vehicle_preset, it will read the configuration, and spawn a vehicle.
Outputs
None
How to Use
There has been some confusion about how to actually make this work. The key part is specifying a parameter override for SpawnVehicle containing the preset entity's name.
Step 1 - Create a vehicle preset
Step 2 - Create a vehicle spawner
Step 3 - Create a trigger
In this case, a trigger_multiple brush-based entity is used.