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
Script Help Help with global var ints.
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#1
Help with global var ints.

Hey guys this is my first time using globalvarints and I am just confused of how to sue them or when, So in this particular map, you pickup a jar of acid and in that function I made this
PHP Code: (Select All)
void CleanContainer(string &in asEntityNamestring &in asType)
{
    
AddPlayerSanity(2);
    
PlayMusic("02_puzzle.ogg"false0.7f0.5f9false);
    
SetEntityActive("AreaSpawn"true); 
    
SetGlobalVarInt("GotJarofAcid"1);    


Now when that happened a script box is supposed to be active now in another map since I made this in that code for the other map
PHP Code: (Select All)
void CheapScare(string &in asParentstring &in asChildint alState)
{
    
//If you got the jar of acid
 
if(GetGlobalVarInt("GotJarofAcid")==1)
 {
     
SetEntityActive("AreaCheapScare"true);
 }
 
SetGlobalVarInt("GotJarofAcid"1);
}

//A function when looking at the Suitor
void SanityDamage(string &in asEntitystring &in asType)
{
SetEntityActive("enemy_suitor_1"true);
 
FadeEnemyToSmoke("enemy_suitor_1"true);


But it still doesn't work do you guys know what's the problem here or am i just stupid cause this is my first time using globalvarints and I might not do a good job at it! so eyah, am I supposed to put something onstart?

IDK tell em down in the comments, thnx.

04-06-2014, 02:25 PM
Find


Messages In This Thread
Help with global var ints. - by Radical Batz - 04-06-2014, 02:25 PM
RE: Help with global var ints. - by Romulator - 04-06-2014, 02:41 PM
RE: Help with global var ints. - by daortir - 04-06-2014, 02:49 PM
RE: Help with global var ints. - by Neelke - 04-06-2014, 02:58 PM
RE: Help with global var ints. - by Mudbill - 04-06-2014, 05:44 PM
RE: Help with global var ints. - by Radical Batz - 04-06-2014, 09:10 PM
RE: Help with global var ints. - by Mudbill - 04-06-2014, 11:06 PM



Users browsing this thread: 1 Guest(s)