define some variable in your global script to represent whether or not the required task to remove the fence is complete:
int task;
task=0;
at the end of your global script export the variable:
export task;
in your script header import the variable so your script for the room with the fence can see the task variable, as well as whatever room the actions to complete the task are in:
import task int;
when the tasks are complete set the task equal to 1 (I'm not sure which script would be the appropriate place for this):
task=1;
now in your room with fence script create an if statement to look at the task variable and determine if the walkable area should be on or off:
if(task==0){
RemoveWalkableArea(2);
}else{
RestoreWalkableArea(2);
}
where the 2nd walkable area is the one beyond the fence.
I think that should work perhaps with a little tweaking.
int task;
task=0;
at the end of your global script export the variable:
export task;
in your script header import the variable so your script for the room with the fence can see the task variable, as well as whatever room the actions to complete the task are in:
import task int;
when the tasks are complete set the task equal to 1 (I'm not sure which script would be the appropriate place for this):
task=1;
now in your room with fence script create an if statement to look at the task variable and determine if the walkable area should be on or off:
if(task==0){
RemoveWalkableArea(2);
}else{
RestoreWalkableArea(2);
}
where the 2nd walkable area is the one beyond the fence.
I think that should work perhaps with a little tweaking.