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
The if and if else statements
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#7
RE: The if and if else statements

(04-10-2013, 03:37 PM)T122002 Wrote:
(04-10-2013, 07:05 AM)Smoke Wrote: Not sure which page you were looking at, but they're located here: http://wiki.frictionalgames.com/hpl2/amn..._functions

I saw the site, but I couldn't find the functions.
Your Computer said this:
"Technically, you don't need if and else statements for that. Just have an interact callback for the key that adds a collision callback for leaving an area that then activates a monster."

Is there a specific function on how to do this? I mean, how would I set that up?
void OnStart()
{
SetEntityCallbackFunc("KeyName", "AreaActive");
}

void AreaActive(string &in asEntity, string &in type)
{
SetEntityActive("NameOfArea", true);
AddEntityCollideCallback("Player", "NameOfArea", "MonsterTrigger", true, 1);
}

void MonsterTrigger(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("MonsterName", true);
}

---
Used using SECF, SEA, and AECC. You can functions and conditional functions in the link provided.

"Veni, vidi, vici."
"I came, I saw, I conquered."
04-10-2013, 03:44 PM
Find


Messages In This Thread
The if and if else statements - by T122002 - 04-09-2013, 06:06 PM
RE: The if and if else statements - by T122002 - 04-09-2013, 11:29 PM
RE: The if and if else statements - by T122002 - 04-10-2013, 03:37 PM
RE: The if and if else statements - by PutraenusAlivius - 04-10-2013, 03:44 PM
RE: The if and if else statements - by T122002 - 04-10-2013, 06:40 PM



Users browsing this thread: 1 Guest(s)