GetPersonLayer
From Spheriki
Get the map layer index of a person.
Contents |
Usage
- person_name string. The name of the person to get the layer of.
- number is returned, containing the map layer index of the person.
Examples
To show the layer of a person named "Bob" on the map:
// In a script file var font = GetSystemFont(); SetRenderScript('font.drawText(0, 0, "layer = " + GetPersonLayer("Bob"))'); MapEngine("my_map.rmp", 60);
Notes
- This function will only work reliably while the map engine is running.
- The layer index will always lie between 0 and GetNumLayers() - 1 inclusive.