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
Greven Offline
Member

Posts: 106
Threads: 13
Joined: May 2011
Reputation: 3
#7
RE: Unlock door when timer is run out

(05-27-2011, 02:54 PM)dasde Wrote: Thanks for the fast replies, very nice.

The door name is:

BruteDoor_1


There is nothing in the script yet, I am starting with the timer. I have the OnStart, OnEnter and OnLeave, all the starter stuff.

Ok so is the timer for the beginning or when you enter a area?

If its in the beginning (on enter) then:
OnEnter()
{
AddTimer("", 30.0f, DoorOpen)
}

void DoorOpen(string &in asTimer)
{
SetSwingDoorLocked("BruteDoor_1", false, true)
}

[WIP] Recidivus
05-27-2011, 03:00 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)