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
Need help with this scripting.
HoyChampoy Offline
Junior Member

Posts: 43
Threads: 16
Joined: Jun 2012
Reputation: 0
#13
RE: Need help with this scripting.

(06-29-2012, 10:19 PM)EXAWOLT Wrote: AddEntityCollideCallback("Player", "ScriptArea_1", "SetMonsterActive", false, 1);
!
false means that the area wont disappear after use
void SetMonsterActive(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Monster", true);
}
///////////////
set the monster disabled in the level editor, and it will work!
This works great but there's a problem. I need it too work once because if the player unfortunately runs into the area again their screen fades out while the monster is chasing them. Undecided Basically, is it possible to have the area work once until the player dies?
06-29-2012, 11:55 PM
Find


Messages In This Thread
Need help with this scripting. - by HoyChampoy - 06-29-2012, 07:18 PM
RE: Need help with this scripting. - by Cruzore - 06-29-2012, 07:22 PM
RE: Need help with this scripting. - by Cruzore - 06-29-2012, 07:47 PM
RE: Need help with this scripting. - by EXAWOLT - 06-29-2012, 07:48 PM
RE: Need help with this scripting. - by Cruzore - 06-29-2012, 07:51 PM
RE: Need help with this scripting. - by Cruzore - 06-29-2012, 08:06 PM
RE: Need help with this scripting. - by EXAWOLT - 06-29-2012, 10:19 PM
RE: Need help with this scripting. - by HoyChampoy - 06-29-2012, 11:55 PM
RE: Need help with this scripting. - by ApeCake - 06-29-2012, 10:24 PM
RE: Need help with this scripting. - by Cruzore - 06-29-2012, 11:57 PM
RE: Need help with this scripting. - by Cruzore - 06-30-2012, 12:04 AM
RE: Need help with this scripting. - by EXAWOLT - 06-30-2012, 12:05 AM
RE: Need help with this scripting. - by Cruzore - 06-30-2012, 12:05 AM
RE: Need help with this scripting. - by Cruzore - 06-30-2012, 12:16 AM
RE: Need help with this scripting. - by Cruzore - 06-30-2012, 12:43 AM



Users browsing this thread: 1 Guest(s)