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
Script Help If statements and entities
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#3
RE: If statements and entities

Thanks for telling me about "GetEntityExists"
Now i got it working with doing this

void OnStart
{
SetEntityPlayerInteractCallback("potion_oil_1", "MonsterActivation", true);
}

void MonsterActivation(string &in asEntity)
{
if (GetEntityExists("MonsterArea_1"))
{
SetEntityActive("MonsterArea_1", true);
}
}


Just a quick question. is it possible to use a doors openamount in an if statement or in a script at all?

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 08-10-2012, 04:41 PM by Lizard.)
08-10-2012, 04:36 PM
Find


Messages In This Thread
If statements and entities - by Lizard - 08-10-2012, 04:07 PM
RE: If statements and entities - by Your Computer - 08-10-2012, 04:23 PM
RE: If statements and entities - by Lizard - 08-10-2012, 04:36 PM
RE: If statements and entities - by Your Computer - 08-10-2012, 04:45 PM
RE: If statements and entities - by Lizard - 08-10-2012, 04:48 PM
RE: If statements and entities - by Your Computer - 08-10-2012, 04:51 PM
RE: If statements and entities - by Lizard - 08-10-2012, 04:54 PM



Users browsing this thread: 2 Guest(s)