The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
If statements and entities

Is it possible to use entities or area in if statements?
If it is, i would happy isf you could tell me how to do it.


This is what i've tried

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

void MonsterActivation(string &in asEntity)
{
if (("MonsterArea_1") == false)
{
SetEntityActive("MonsterArea_1", true);
}
else
{
PlaySoundAtEntity("", "grunt/enabled", "prison_2", 0, false);
PlaySoundAtEntity("", "scare_slam_door", "prison_2", 0, false);
}
}

Thanks in advance

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 08-10-2012, 04:08 PM by Lizard.)
08-10-2012, 04:07 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: 1 Guest(s)