Adds a spawn point for a Wasp Camera to a level using a XYZ position.
Scope
This command should be called in a level's initialisation script.
Syntax
MFK
Lua
AddSpawnPointByLocatorScript( spawn_point_name, state_prop_name, unused_instance_name, x, y, z, radius, unused_timeout );Game.AddSpawnPointByLocatorScript( spawn_point_name, state_prop_name, unused_instance_name, x, y, z, radius, unused_timeout )- spawn_point_name: The name of this spawn point. Should be unique.
- state_prop_name: The name of the state prop to use.
- Typically,
beecamera.
- Typically,
- unused_instance_name: Unused.
- x: The X position.
- y: The Y position.
- z: The Z position.
- radius: The radius of the spawn point's sphere trigger.
- unused_timeout: Unused.
Examples
MFK
Lua
// Example from Radical's scripts/missions/level01/leveli.mfk
AddSpawnPoint("SimpsonsHouse", "beecamera", "Shelly", "222.041", "4.5", "-169.169", "50.0", "20");-- Example from Radical's scripts/missions/level01/leveli.mfk
Game.AddSpawnPoint("SimpsonsHouse", "beecamera", "Shelly", "222.041", "4.5", "-169.169", "50.0", "20")Notes
Radical never actually uses this command, with all references to it being commented out, instead opting for AddSpawnPointByLocatorScript.