CopySpawnArgs (script event)

From modwiki

Jump to: navigation, search

Game class

This event operates on an instance of the game class type {{{gameclass}}}

Description

Copies the spawn args from an entity.

Usage

void copySpawnArgs( entity ent )

Parameters

  • [ent] - The entity to copy spawn arguments from.

Examples

 
void reverse_monster_gravity (entity ent_mon_this){
 
    sys.copySpawnArgs(ent_mon_this); //copy the entity's spawn arguments
    //more code here
 
}

Notes

This script event does not return any values.

After using copySpawnArgs, you may need to use setSpawnArg to set explicitly those spawn args which need to be changed.


Personal tools
Main
id Tech 5