Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Script to unlock a door

Page: 1 of 1
 Xavier2
12-01-2004, 2:37 PM
#1
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, 2:43 PM
#2
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);
}
}
Page: 1 of 1