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
Help on entity activation
TShapeShifter Offline
Junior Member

Posts: 17
Threads: 5
Joined: Jul 2014
Reputation: 0
#9
RE: Help on entity activation

Guys thanks alot! Smile I've managed to do it, I tried what Mudbill told me but it didn't work for some reason Undecided I then used this:
PHP Code: (Select All)
void OnStart()
{
    
SetEntityPlayerInteractCallback("note_generic_2", "AddOneToFunction", true);
    
SetEntityPlayerInteractCallback("note_generic_1", "AddOneToFunction", true);
    
SetLocalVarInt("monster_appear", 0);
    
AddEntityCollideCallback("Player", "checkfornotesarea", "Check", true, 1);
}

void AddOneToFunction(string &in asEntity)
{
    
AddLocalVarInt("monster_appear", 1);
}
void Check(string &in asParent, string &in asChild, int alState)
{
    if(
GetLocalVarInt("monster_appear") == 2)
    {
    
SetEntityActive("doortest", true);
    }
} 
but this will work on this specific map only, for it to work on the notes on the other maps aswell I've got to use a Global Variable right? o: How exactly do I do that? Confused and thanks for your help guys you're awesome ^^
07-13-2014, 10:03 PM
Find


Messages In This Thread
Help on entity activation - by TShapeShifter - 07-12-2014, 10:26 PM
RE: Help on entity activation - by TShapeShifter - 07-12-2014, 10:54 PM
RE: Help on entity activation - by Romulator - 07-13-2014, 01:56 AM
RE: Help on entity activation - by TShapeShifter - 07-13-2014, 03:07 AM
RE: Help on entity activation - by Mudbill - 07-13-2014, 07:38 AM
RE: Help on entity activation - by Romulator - 07-13-2014, 08:42 AM
RE: Help on entity activation - by TShapeShifter - 07-13-2014, 10:03 PM
RE: Help on entity activation - by Mudbill - 07-13-2014, 10:15 PM
RE: Help on entity activation - by TShapeShifter - 07-13-2014, 10:45 PM
RE: Help on entity activation - by Mudbill - 07-14-2014, 12:12 AM



Users browsing this thread: 2 Guest(s)