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
If the lamp is lit, monster deactivates ?
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: If the lamp is lit, monster deactivates ?

I suppose this is only going to happen once?
That sounds pretty easy. What you need is a function for when the monster spawns (Which you already has) and a function for despawning it.

Good. So spawn the monster and unlit the candle when you want to in the script.
Then, create a callback function called: SetEntityCallbackFunc.
This function is pretty cool.

Good so in your script you make it like this:

void CALLBACKFUNC(string &in asEntity, string &in asType)
{
if(asType == OnIgnite)
{
//Despawn monster
}
}

Trying is the first step to success.
(This post was last modified: 03-02-2013, 01:02 PM by FlawlessHappiness.)
03-02-2013, 01:01 PM
Find


Messages In This Thread
RE: If the lamp is lit, monster deactivates ? - by FlawlessHappiness - 03-02-2013, 01:01 PM



Users browsing this thread: 1 Guest(s)