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
Problems spawning an entity
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#6
RE: Problems spawning an entity

void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_2" , "MonsterFunc2" , true , 1);
}


void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_brute_1" , true);
PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0.5f, false);

}

void MonsterFunc2(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("barrel01_20" , true);
SetEntityActive("barrel01_21" , true);
SetEntityActive("barrel01_22" , true);
SetEntityActive("barrel01_28" , true);
SetEntityActive("barrel01_29" , true);
SetEntityActive("barrel01_23" , true);
SetEntityActive("barrel01_24" , true);
SetEntityActive("barrel01_25" , true);
SetEntityActive("barrel01_27" , true);
SetEntityActive("barrel01_26" , true);
SetEntityActive("barrel01_10" , true);
PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0.5f, false);
}

10-13-2011, 12:21 PM
Website Find


Messages In This Thread
Problems spawning an entity - by flamez3 - 10-13-2011, 11:03 AM
RE: Problems spawning an entity - by Tanshaydar - 10-13-2011, 11:07 AM
RE: Problems spawning an entity - by flamez3 - 10-13-2011, 11:49 AM
RE: Problems spawning an entity - by Tanshaydar - 10-13-2011, 12:05 PM
RE: Problems spawning an entity - by flamez3 - 10-13-2011, 12:15 PM
RE: Problems spawning an entity - by Tanshaydar - 10-13-2011, 12:21 PM
RE: Problems spawning an entity - by flamez3 - 10-13-2011, 12:30 PM
RE: Problems spawning an entity - by Tanshaydar - 10-13-2011, 12:54 PM



Users browsing this thread: 1 Guest(s)