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
How to enable key after few seconds?
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#3
RE: How to enable key after few seconds?

void OnStart()
{

AddEntityCollideCallback("Player", "AreaNameFromLevelEditor", "func", true, 1);

}

void func(string &in asParent, string &in asChild, int alState)
{

    AddTimer("", 25.0f, "Timer_1");    

}

void Timer_1(string &in asTimer)
{

SetEntityActive("KeyNameFromLevelEditor",true);

}

Pamiętaj tylko, że klucz musi mieć odznaczone "active", możesz to znaleźć jak klikniesz na kluczyk w level editorze, jest pod jego nazwą.

Bear in mind that key has to have active set as off, it can be found when you click at the key in level editor, below the name.

(judging by his next thread I assume he is polish so i write to him in polish)
(This post was last modified: 08-19-2014, 06:06 PM by Slanderous.)
08-19-2014, 01:50 PM
Find


Messages In This Thread
RE: How to enable key after few seconds? - by Slanderous - 08-19-2014, 01:50 PM



Users browsing this thread: 1 Guest(s)