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:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if & else URGENT! PLZ!
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#1
if & else URGENT! PLZ!

Hello peoples,

I wanted to know is there such features in angle script (the one to code Amnesia and custom stories) like 'if' and 'else' because I was going to do a bit in my level where you pull a lever and if a variable = 0 then a message will appear otherwise a door will unlock.

How would I set my script to detect if my var is 0 and show a message or 1 and unlock a door?

I hope that you can help Big Grin

EDIT:
void used1(string &in asParent, string &in asChild, int alState)
{
    if
    AddLocalVarInt("door1", 0);
    SetMessage("Message", "used1", 3);
    
    else
    //Something
    
}

...
(This post was last modified: 05-21-2011, 10:38 AM by X4anco.)
05-21-2011, 09:58 AM
Find


Messages In This Thread
if & else URGENT! PLZ! - by X4anco - 05-21-2011, 09:58 AM
RE: if & else URGENT! PLZ! - by Karai16 - 05-21-2011, 11:05 AM
RE: if & else URGENT! PLZ! - by Russ Money - 05-21-2011, 11:10 AM
RE: if & else URGENT! PLZ! - by X4anco - 05-21-2011, 11:44 AM



Users browsing this thread: 1 Guest(s)