Mman235
Junior Member
Posts: 15
Threads: 3
Joined: Sep 2010
Reputation:
0
|
RE: How do i make a monster appear with a trigger
(10-18-2010, 08:06 PM)Kyle Wrote: Here ya go. "ScriptArea_1" is the name of the script area where you collide which causes the monster to spawn. "MonsterFunc1" is the name of the function used later on when you want to add to the script instead of it doing nothing. "servant_grunt" is the name of the monster that spawns. If you don't know how to actually place a scriptarea or to place and setup a monster, then ask me.
void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt" , true);
} ok thank you
(10-18-2010, 08:06 PM)Kyle Wrote: Here ya go. "ScriptArea_1" is the name of the script area where you collide which causes the monster to spawn. "MonsterFunc1" is the name of the function used later on when you want to add to the script instead of it doing nothing. "servant_grunt" is the name of the monster that spawns. If you don't know how to actually place a scriptarea or to place and setup a monster, then ask me.
void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt" , true);
}
ive got another problem the monster is spawned from the start
(This post was last modified: 10-18-2010, 08:26 PM by Mman235.)
|
|
10-18-2010, 08:11 PM |
|