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 So many errors
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: So many errors

That's not something implemented Wink It's something you could do with variables.

Ex.

OnStart
All timers run.
Set timers to only work if LocalVarInt "TimerVar" == 1

if(GetLocalVarInt("TimerVar") == 1)
{
//DO STUFF WHEN INSIDE AREA
}
if(GetLocalVarInt("TimerVar") == 0)
{
//DO STUFF WHEN OUTSIDE AREA
}

When walking into area:

SetLocalVarInt("TimerVar", 1);

When walking out of area:
SetLocalVarInt("TimerVar", 0);


Understand?

Trying is the first step to success.
(This post was last modified: 02-10-2013, 11:15 PM by FlawlessHappiness.)
02-10-2013, 11:13 PM
Find


Messages In This Thread
So many errors - by CarnivorousJelly - 02-10-2013, 10:43 PM
RE: So many errors - by FlawlessHappiness - 02-10-2013, 11:13 PM
RE: So many errors - by CarnivorousJelly - 02-11-2013, 12:54 AM
RE: So many errors - by FlawlessHappiness - 02-11-2013, 07:48 AM
RE: So many errors - by CarnivorousJelly - 02-11-2013, 07:52 PM
RE: So many errors - by Adrianis - 02-11-2013, 08:55 PM
RE: So many errors - by CarnivorousJelly - 02-12-2013, 06:45 AM
RE: So many errors - by Adrianis - 02-11-2013, 11:22 AM
RE: So many errors - by FlawlessHappiness - 02-11-2013, 08:36 PM
RE: So many errors - by Adrianis - 02-12-2013, 06:14 PM
RE: So many errors - by CarnivorousJelly - 02-13-2013, 12:54 AM
RE: So many errors - by CarnivorousJelly - 02-14-2013, 05:23 AM
RE: So many errors - by TheGreatCthulhu - 02-14-2013, 01:23 PM



Users browsing this thread: 1 Guest(s)