<aside> ⚡ script "map_itemfog" (void)
</aside>
This script is called whenever any item on the map respawns. It determines which item respawn animation graphics to use.
This script can replaced by adding a new script in your map of the name, map_teleportfog
, to add additional behavior to this event, or override the existing behavior.
This script has no parameters or expected return value.
The default item fog script spawns a tiny version of the Mega Man teleport effect.
// Activator: The original itemfog.
// There is no information given about the spawned item.
script "map_itemfog" (void)
{
SpawnForced("ItemFogFX", GetActorX(0), GetActorY(0), GetActorZ(0), 999, 0);
}
Here’s a simple script replacement that spawns a cartoon magic poof effect called MagicPoofRespawn
.
To use, simply copy this into your scripts and create a DECORATE actor called MagicPoofRespawn
that plays the poof animation and sound effect.
script "map_itemfog" (void)
{
SpawnForced("MagicPoofRespawn", GetActorX(0), GetActorY(0), GetActorZ(0), 999, 0);
}