SetPersonLayer
From Spheriki
Set the map layer of a person.
Contents |
[edit]
Usage
SetPersonLayer(person_name, layer);
- person_name string. The name of the person to change the map layer of.
- layer number, non-negative. The index of the map layer.
[edit]
Examples
To put a person named "Rob" on the third layer (or map layer index 2):
SetPersonLayer("Rob", 2);
[edit]
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.
[edit]

