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
Area Scripts
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#6
RE: Area Scripts

Quote:///Gegner Aktiv stellen////

void OnEnter()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "Spawn", true , 1);
}

void Spawn(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_2" , true);
SetEntityActive("servant_grunt_1" , true);
SetEntityActive("servant_brute_1" , true);
}


///Gegner Aktiv stellen -Ende-////

What this does is: When the Player enters ScriptArea_1, run "Spawn". Spawn is our string that will make the enemies activate.

void Spawn triggers what "Spawn" will do, which is activate your grunts and brute.
(This post was last modified: 01-08-2011, 11:40 PM by Russ Money.)
01-08-2011, 11:37 PM
Find


Messages In This Thread
Area Scripts - by sassix - 01-08-2011, 10:39 PM
RE: Area Scripts - by Tottel - 01-08-2011, 10:44 PM
RE: Area Scripts - by sassix - 01-08-2011, 10:53 PM
RE: Area Scripts - by Tottel - 01-08-2011, 10:58 PM
RE: Area Scripts - by sassix - 01-08-2011, 11:04 PM
RE: Area Scripts - by Russ Money - 01-08-2011, 11:37 PM
RE: Area Scripts - by sassix - 01-08-2011, 11:46 PM



Users browsing this thread: 1 Guest(s)