FED2 ADVANCED WORKBENCH
SCRIPT REFERENCE

CHECKLASTLOC

Checks to see whether the previous location the player was in matches that specified.

Parameters:
LastLocation - The location number you want to check for
Pass - The event to call if the player did come from that location
Fail - The event to call if the player did not come from that location

If you do not want an event to be called for one of the possibilities, leave the parameter blank.

Example:
checklastloc script: location 346: pass extras.bar.2

More scripts