PDA

View Full Version : Script to unlock a door


Xavier2
12-01-2004, 03:37 PM
What is the script to unlock a door using a global plot number? I.E. Unlocks the door after GlobalNumber = 3? Where should i place it in the door utd?

Darth333
12-01-2004, 03:43 PM
void main()
{
if(GetGlobalNumber("BLA_BLA") == 3)
{
//identify the door or force field you want to unlock
object oDoor = GetObjectByTag("my_door");

//unlock the object
SetLocked(oDoor,FALSE);
}
}