SetPersonLayer
From Spheriki
Set the map layer of a person.
Contents |
Usage
- person_name string. The name of the person to change the map layer of.
- layer number, non-negative. The index of the map layer.
Examples
To put a person named "Rob" on the third layer (or map layer index 2):
SetPersonLayer("Rob", 2);
Notes
- If you try this before running MapEngine(), the result may be overruled by the starting position's layer. To get around this, use something like:
QueuePersonScript("Rob", "SetPersonLayer('Rob', 2)", false);
- The layer parameter must be between 0 and GetNumLayers() - 1 inclusive.