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
T122002 Offline
Junior Member

Posts: 24
Threads: 10
Joined: Dec 2012
Reputation: 1
#8
RE: The if and if else statements

(04-10-2013, 03:44 PM)JustAnotherPlayer Wrote:
(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.

Ooh! Thank you so much for the functions! This was exactly what I was looking for!
04-10-2013, 06:40 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 T122002 - 04-10-2013, 06:40 PM



Users browsing this thread: 1 Guest(s)