Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unlock door when timer is run out
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#3
RE: Unlock door when timer is run out

void door(string &in asTimer)
{
AddTimer("", 60.0f, "Door_timer");
}


void Door_timer(string &in asTimer)
{
SetSwingDoorLocked("DOORNAME", false, true);
}

After 60seconds the function "Door_timer" will activate and unlock the door "DOORNAME". Correct me if I'm wrong 'cuz I'm new to scripting ;D

[Image: 44917299.jpg]Dubstep <3
(This post was last modified: 05-27-2011, 02:46 PM by xtron.)
05-27-2011, 02:46 PM
Find


Messages In This Thread
Unlock door when timer is run out - by dasde - 05-27-2011, 02:31 PM
RE: Unlock door when timer is run out - by Greven - 05-27-2011, 02:35 PM
RE: Unlock door when timer is run out - by xtron - 05-27-2011, 02:46 PM
RE: Unlock door when timer is run out - by Greven - 05-27-2011, 02:51 PM
RE: Unlock door when timer is run out - by dasde - 05-27-2011, 02:51 PM
RE: Unlock door when timer is run out - by dasde - 05-27-2011, 02:54 PM
RE: Unlock door when timer is run out - by Greven - 05-27-2011, 03:00 PM
RE: Unlock door when timer is run out - by dasde - 05-27-2011, 03:04 PM
RE: Unlock door when timer is run out - by Greven - 05-27-2011, 03:11 PM
RE: Unlock door when timer is run out - by dasde - 05-27-2011, 03:22 PM
RE: Unlock door when timer is run out - by dasde - 05-27-2011, 03:11 PM
RE: Unlock door when timer is run out - by Greven - 05-27-2011, 03:25 PM
RE: Unlock door when timer is run out - by dasde - 05-27-2011, 03:33 PM



Users browsing this thread: 1 Guest(s)