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
Grunt disappearing
naseem142 Offline
Member

Posts: 153
Threads: 19
Joined: Oct 2012
Reputation: 0
#4
RE: Grunt disappearing

(10-09-2012, 03:34 PM)ZereboO Wrote:
(10-09-2012, 03:26 PM)naseem142 Wrote: How can i make the grunt "disappear" if he didn't find the player after 15 seconds?


Thank you.
you could add a timer, with makes him disappear

example

Void OnStart()
{
AddTimer("timers name", "number of second", "function to call when the time has passed");
}

void function(string &in asTimer)
{
SetEntityActive("name of monster", false); (false for making him dissapear)
}
I'm not sure where do i put them in the lines , i started creating my map yesterday.
I tried to put it where i think it belongs but i got an error. :/
10-09-2012, 03:59 PM
Website Find


Messages In This Thread
Grunt disappearing - by naseem142 - 10-09-2012, 03:26 PM
RE: Grunt disappearing - by Robby - 10-09-2012, 03:30 PM
RE: Grunt disappearing - by Lizard - 10-09-2012, 03:34 PM
RE: Grunt disappearing - by naseem142 - 10-09-2012, 03:59 PM
RE: Grunt disappearing - by Robby - 10-09-2012, 04:06 PM
RE: Grunt disappearing - by naseem142 - 10-09-2012, 04:07 PM
RE: Grunt disappearing - by Robby - 10-09-2012, 04:10 PM
RE: Grunt disappearing - by naseem142 - 10-09-2012, 04:18 PM



Users browsing this thread: 1 Guest(s)