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
Brute appearing upon opening cabinet
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#2
RE: Brute appearing upon opening cabinet

(06-30-2012, 12:38 PM)ApeCake Wrote: void monsteraway(string &in asTimer)
{
string r = asTimer;
if (r == "monsterpoof")
{
FadeEnemyToSmoke("monster_servant_1337", true);
}
}
this could be rewritten a bit smarter by using the syntax like this:

void monsteraway(string &in asTimer)
{
if(asTimer == "monsterpoof")
{
FadeEnemyToSmoke("monster_servant_1337", true);
}
}

Now to your problem

AddTimer("monsterpoof", 1.5f, "monsteraway");

and also the function you use to call Monsterclosetscare is PlayerInteract?
the syntax should be (string &in asEntity)

but I think the problem with using PlayerInteract on the closet is that it will not be removed and will be triggered several times which makes
SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction);

a better choice

06-30-2012, 01:07 PM
Find


Messages In This Thread
Brute appearing upon opening cabinet - by ApeCake - 06-30-2012, 12:38 PM
RE: Brute appearing upon opening cabinet - by SilentStriker - 06-30-2012, 01:07 PM



Users browsing this thread: 1 Guest(s)