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
Set active bug?
samixxa Offline
Junior Member

Posts: 12
Threads: 3
Joined: Nov 2011
Reputation: 0
#5
RE: Set active bug?

When a player Collide with an Area it sets the things active, weirdly enough some of the items are hidden till the played walks in the area, but some of them are active all the time.

void OnStart()
{
    AddEntityCollideCallback("Player", "area_3", "boo", true, 1);
}

void boo(string &in asParent, string &in asChild, int alState)
{    
    SetEntityActive("armor_1", true);
    SetEntityActive("armor_2", true);
    SetEntityActive("armor_3", true);
    SetEntityActive("armor_4", true);
    SetEntityActive("armor_5", true);
    SetEntityActive("armor_6", true);
    SetEntityActive("armor_7", true);
    SetEntityActive("armor_8", true);
    SetEntityActive("armor_9", true);
    SetEntityActive("armor_10", true);
    SetEntityActive("armor_11", true);
    SetEntityActive("armor_12", true);
    SetEntityActive("armor_13", true);
    PlaySoundAtEntity("area_3", "21_scream10/21_screams.snt", "area_3", 0, false);
    SetEntityActive("torch_static01_2", true);
    SetEntityActive("torch_static01_1", true);
}

The Torches are inactive till the player walks in the area, but the armors are active all the time even tho they are unchecked.
01-27-2012, 03:11 PM
Find


Messages In This Thread
Set active bug? - by samixxa - 01-27-2012, 02:49 PM
RE: Set active bug? - by Tripication - 01-27-2012, 02:50 PM
RE: Set active bug? - by samixxa - 01-27-2012, 02:54 PM
RE: Set active bug? - by flamez3 - 01-27-2012, 03:03 PM
RE: Set active bug? - by samixxa - 01-27-2012, 03:11 PM
RE: Set active bug? - by Datguy5 - 01-27-2012, 03:49 PM
RE: Set active bug? - by samixxa - 01-27-2012, 04:13 PM
RE: Set active bug? - by Datguy5 - 01-27-2012, 04:56 PM
RE: Set active bug? - by flamez3 - 01-27-2012, 04:59 PM
RE: Set active bug? - by samixxa - 01-27-2012, 05:58 PM
RE: Set active bug? - by Statyk - 01-27-2012, 08:19 PM
RE: Set active bug? - by Spelos - 09-12-2014, 10:22 AM
RE: Set active bug? - by Datguy5 - 01-27-2012, 08:29 PM
RE: Set active bug? - by Kreekakon - 09-12-2014, 10:28 AM



Users browsing this thread: 1 Guest(s)