(05-27-2011, 03:04 PM)dasde Wrote: (05-27-2011, 03:00 PM)Greven Wrote: (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)
}
Didnt work. If you can use this information, then the door is locked in the editor.
Ok... that shouldnt make a difference. hmmm i cant really see what the problem is... Only that if you try to open it before 30 s... Edit: Lol silly me and my nooby mistakes, after AddTimer("", 30.0f, DoorOpen)
ther should be a ; and also after the SetSwingDoorLocked("BruteDoor_1", false, true)