Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
4* Questions and Questions are in comic :O
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: 4* Questions and Questions are in comic :O

PathNodes: http://www.frictionalgames.com/forum/thr...Path+Nodes

Ladders: http://www.frictionalgames.com/forum/thr...ht=Ladders

Player Grabs object and then monster spawns:

void OnStart()
{
     SetEntityCollideCallback("ItemName", "Func01", true);
}
void Func01(string &in asEntity)
{
     SetEntityActive("MonsterName", true);
}

Here is next script about player going inside a closet and then sets the monster inactive:

Put an area in the closet and lets call it ScriptArea_1 for now.

void OnStart()
{
     AddEntityCollideCallback("Player", "ScriptArea_1", "Func01", false, 1);
}
void Func01(string &in asParent, string &in asChild, int alState)
{
     SetEntityActive("MonsterName");
}

Make sure you plug in all the things for it.

(This post was last modified: 06-10-2011, 11:51 AM by Kyle.)
06-10-2011, 11:46 AM
Find


Messages In This Thread
RE: 4* Questions and Questions are in comic :O - by Kyle - 06-10-2011, 11:46 AM



Users browsing this thread: 1 Guest(s)