flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
RE: Need to fix my script
(01-21-2012, 05:06 PM)djwhatkid Wrote: Hi, so basicly i have tryed for like ever to fix this. so i want 3 corpses to spawn when i hit the scriptArea (Box)
//
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptAreaCorpsespawn", "SpawnCorpse1", false, 1);
AddEntityCollideCallback("Player", "ScriptAreaCorpsespawn", "SpawnCorpse2", false, 1);
AddEntityCollideCallback("Player", "ScriptAreaCorpsespawn", "SpawnCorpse3", false, 1);
AddEntityCollideCallback("Player", "Music", "StartMusic", true, 1);
}
void SpawnCorpse1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("corpse1");
}
void SpawnCorpse2(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("corpse2");
}
void SpawnCorpse3(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("corpse3");
}
void StartMusic(string &in asParent, string &in asChild, int alState)
{
PlayMusic("266663_Ambience_Experiment.ogg", true, 0.8, 2, 1, true);
} SetEntityActive("corpse1", true);
Do that for each of your corpse's
|
|
01-21-2012, 05:09 PM |
|