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
Timer help
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Timer help

PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player""TheTime""MonsterTimerBegin"true1); //TheTime is the script area you mention.
}

void MonsterTimerBegin(string &in asParentstring &in asChildint alState)
{   
        
AddTimer(""30.0f"MonsterTimer"); //Begins the timer with the duration of 30 sec.
}

void MonsterTimer(string &in asTimer)
{    
    
SetEntityActive("MONSTERNAME"true);   //Change MONSTERNAME to whatever your monster's name is.

I don't know how to script Case2, but i think it uses the if else statement.

"Veni, vidi, vici."
"I came, I saw, I conquered."
03-13-2013, 03:45 PM
Find


Messages In This Thread
Timer help - by VisualTech48 - 03-13-2013, 02:28 PM
RE: Timer help - by PutraenusAlivius - 03-13-2013, 03:45 PM
RE: Timer help - by VisualTech48 - 03-13-2013, 05:21 PM
RE: Timer help - by Adrianis - 03-13-2013, 05:35 PM
RE: Timer help - by VisualTech48 - 03-13-2013, 06:15 PM



Users browsing this thread: 1 Guest(s)