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
Help with GetLocalVarInt
Paulpolska Offline
Member

Posts: 144
Threads: 29
Joined: Jun 2011
Reputation: 0
#1
Help with GetLocalVarInt

I have script that we must put three wheels to machine after my next function must show message if GetLocalVarInt = 3. Of course don't show

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Plax", true, 1);
AddEntityCollideCallback("cogwheel_tiny01_4", "StickyArea_3", "CollideWheel", false, 1);
AddEntityCollideCallback("cogwheel_tiny01_5", "StickyArea_1", "CollideWheel", false, 1);
AddEntityCollideCallback("cogwheel_tiny01_6", "StickyArea_2", "CollideWheel", false, 1);
}


void CollideWheel(string &in asParent, string &in asChild, int alState)
{
    AddLocalVarInt("asChild", 1);
    PlaySoundAtEntity("", "impact_metal_low", "Player", 0.05f, false);
    
}


void StartSectionDead(string &in asChild, int alVal)
{
if(GetLocalVarInt("asChild") != 3) {
SetMessage("Journal", "Slime", 0);
}
}

MY CUSTOM STORY - - STILL ALIVE - -
http://www.moddb.com/mods/still-alive
07-04-2011, 05:52 PM
Find


Messages In This Thread
Help with GetLocalVarInt - by Paulpolska - 07-04-2011, 05:52 PM
RE: Help with GetLocalVarInt - by DamnNoHtml - 07-04-2011, 05:54 PM
RE: Help with GetLocalVarInt - by Paulpolska - 07-04-2011, 06:02 PM
RE: Help with GetLocalVarInt - by Kyle - 07-04-2011, 06:36 PM
RE: Help with GetLocalVarInt - by palistov - 07-05-2011, 12:30 AM
RE: Help with GetLocalVarInt - by Paulpolska - 07-05-2011, 12:06 PM



Users browsing this thread: 1 Guest(s)