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
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#7
RE: Problems spawning an entity

(10-13-2011, 12:21 PM)Tanshaydar Wrote:
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);
}
Thank you, i really appreciate that. You didn't have to give me the script. You could of told me what was in the wrong place, I am SOOOOO glad it works now, thank you for your help Smile
10-13-2011, 12:30 PM
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)