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
Multiple Issues Help Help with Global Var Ints that are not working!
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#1
Help with Global Var Ints that are not working!

Hey guys it's been a hell long time since I posted something here and I missed you all. But I am trying to learn how to work with global var ints <---------- I'm bad at it

and I tried making something like this, example picking up a rod it will set a global var int
PHP Code: (Select All)
void PickCycleRod(string &in asEntitystring &in asType)
{
    
GiveSanityBoostSmall();
    
    
//For machine room scare
    
SetGlobalVarInt("GlassJarPickedUp"1);


then made this on start in the level which i'll be enterign after picking up that rod

PHP Code: (Select All)
if(GetGlobalVarInt("GlassJarPickedUp")==1)
    {
        
SetEntityActive("glass_container_1"true);
    }


named the entity int he level "glass_container_1" near player start to test it, since it's my first time using global var ints! and guess what?
....

It doesn't work, the entity doesn't appear in the level, maybe I did something wrong or not but do you guys see any problems?

and no Traggey I didn't make the same thread, you might see an older thread with the same title but this one is just help of why it isn't working not the one where I don't understand global var ints!

(This post was last modified: 05-20-2014, 06:49 PM by Radical Batz.)
05-20-2014, 06:18 PM
Find


Messages In This Thread
Help with Global Var Ints that are not working! - by Radical Batz - 05-20-2014, 06:18 PM
RE: Help with Global Var Ints! - by Wapez - 05-20-2014, 06:34 PM
RE: Help with Global Var Ints! - by Radical Batz - 05-20-2014, 06:38 PM



Users browsing this thread: 1 Guest(s)