CopySpawnArgs (script event)

From modwiki

Jump to: navigation, search

Description

Copies the spawn args from an entity.

Usage

In your script type...

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