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
How to make a hallucination event.
Dalroc Offline
Member

Posts: 57
Threads: 2
Joined: Mar 2011
Reputation: 0
#4
RE: How to make a hallucination event.

This is taken directly from Scripts Recollection, the stickied thread on top of this forum.
Always check if what you need has been posted there already!
void OnStart()
{
  AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
  SetEntityActive("servant_grunt" , true);
}
"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.
Remember to set the monster's entity to not active.
04-09-2011, 02:14 PM
Find


Messages In This Thread
How to make a hallucination event. - by ZxBrad - 04-09-2011, 01:29 PM
RE: How to make a hallucination event. - by Dalroc - 04-09-2011, 02:14 PM



Users browsing this thread: 1 Guest(s)