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 Variables and Closet Scares
craven7 Offline
Member

Posts: 50
Threads: 8
Joined: Aug 2012
Reputation: 1
#2
RE: Variables and Closet Scares

Your syntax is wrong.

Use these instead to access variables:
    SetLocalVarInt("closetTriggered",0);


    if(GetLocalVarInt("closetTriggered") == 0)
    {
          // do Scare
          // SetLocalVarInt("closetTriggered",1);
    }
Also you should consider thinking about your game/map design... a scare right in the beginning doesn't really fit the amnesia style.... but this is your choice.
(This post was last modified: 10-28-2012, 01:34 PM by craven7.)
10-28-2012, 01:32 PM
Find


Messages In This Thread
Variables and Closet Scares - by Mrpeanut188 - 10-28-2012, 08:25 AM
RE: Variables and Closet Scares - by craven7 - 10-28-2012, 01:32 PM
RE: Variables and Closet Scares - by Mrpeanut188 - 10-29-2012, 12:25 AM



Users browsing this thread: 1 Guest(s)