Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bool GetLanternActive
Author Message
X4anco Offline
Member

Posts: 140
Joined: Apr 2011
Reputation: 0
Post: #1
bool GetLanternActive
Hello peoples

How do you use bool GetLanternActivebool ?Huh

Thank-you Big Grin

I like poop
05-29-2011 09:17 PM
Find all posts by this user Quote this message in a reply
Someone else Offline
Member

Posts: 179
Joined: Sep 2010
Reputation: 0
Post: #2
RE: bool GetLanternActive
Here is an example:
if(GetLanternActive()){
SetEntityActive("grunt_1",true);
}
What the above does is simply checks if the lantern is active, and if it is then it spawns a grunt.

Support the developer.
Say no to piracy.
My avatar used to shape shift, but that is no longer the case.
05-29-2011 09:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,091
Joined: Mar 2009
Reputation: 66
Post: #3
RE: bool GetLanternActive
Bool means true or false, so GetLanternActive() gets you if player uses a lantern. Example use:

if( GetLanternActive() ) //This means, if player uses his/her lantern
{
Do something here;
}
else //This means, if player doesn't use his/her lantern
{
Show a monster?
}

05-29-2011 09:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
X4anco Offline
Member

Posts: 140
Joined: Apr 2011
Reputation: 0
Post: #4
RE: bool GetLanternActive
How can I dis activate an area?

I like poop
05-29-2011 09:34 PM
Find all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 910
Joined: Sep 2010
Reputation: 7
Post: #5
RE: bool GetLanternActive
(05-29-2011 09:34 PM)X4anco Wrote:  How can I dis activate an area?

SetEntityActive("ScriptArea_1", false);

05-29-2011 10:06 PM
Find all posts by this user Quote this message in a reply
laser50 Offline
Member

Posts: 243
Joined: Apr 2011
Reputation: 0
Post: #6
RE: bool GetLanternActive
No offence, 5th thread in i think one day?
05-29-2011 10:50 PM
Find all posts by this user Quote this message in a reply
MrBigzy Offline
Senior Member

Posts: 616
Joined: Mar 2011
Reputation: 8
Post: #7
RE: bool GetLanternActive
(05-29-2011 10:06 PM)Kyle Wrote:  
(05-29-2011 09:34 PM)X4anco Wrote:  How can I dis activate an area?

SetEntityActive("ScriptArea_1", false);

You wouldn't do that, you'd do a Callback. I dont think SetEntityActive works for areas.
05-29-2011 11:21 PM
Find all posts by this user Quote this message in a reply
X4anco Offline
Member

Posts: 140
Joined: Apr 2011
Reputation: 0
Post: #8
RE: bool GetLanternActive
(05-29-2011 10:50 PM)laser50 Wrote:  No offence, 5th thread in i think one day?

Ye am pretty shit at this Big Grin

I like poop
05-29-2011 11:43 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)