IsPlayerInRegion

Revision as of 09:51, 23 July 2018 by imported>DavidJCobb (command's functionality verified through disassembly)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This condition takes a region as an argument. It queries the player's parent cell, and then checks to see whether the list of regions that the cell belongs to contains the argument. If so, the condition returns 1.0; otherwise, it returns 0.0.

Exact region boundaries (e.g. for regions that partially cut through a cell, like border regions) are not checked.