Donut Team is a labor of love, built and maintained by a small group of passionate developers. We invest our own time and resources to offer our tools, mods, and web services completely free of charge.

We don't run ads, and we will never sell your data - period.

If you've enjoyed anything we've created, please consider supporting our work with a one-time or monthly donation via our Ko-fi page . Every contribution helps us continue building great experiences for the community.

Dismiss
  • Games
  • Radical Entertainment
  • The Simpsons: Hit & Run
  • Scripting
  • Console Commands
  • MFK Commands
  • Level Initialisation
  • Actors

AddSpawnPoint

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.
  • 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.