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 Setting up the elevator machine
Tomato Cat Offline
Senior Member

Posts: 287
Threads: 2
Joined: Sep 2012
Reputation: 20
#16
RE: Setting up the elevator machine

You can merge this:

PHP Code: (Select All)
void CheckCoalCount()
{
if(
GetLocalVarInt("Coal") == 3
{
SetMessage("Messages""BurnerReady"0);
PlaySoundAtEntity("BurnerSound""general_fire_burning""AreaBurnerParticle"1true);
CreateParticleSystemAtEntity("Fire""ps_fire_stove_small.ps""AreaBurnerParticle"true);
    }


With your existing Burner function:

PHP Code: (Select All)
void BurnerFail(string &in asEntityint alState
{
    if(
alState == 1//1 up, -1 down, 0 between
        
{
               if(
GetLocalVarInt("Coal") < 3)
           {
           
SetMessage("Messages""BurnerNotReady"0);
           }
              
               
//Like JAP was saying. "else if" will test if the initial "if" was false
              
else if(GetLocalVarInt("Coal") == 3)
              {
                
//Basically copy your CheckCoalCount function here.
                //Using this else if, you don't have to create an entirely new function
              
}
        }


Let me clarify a few things. Is the machine itself starting when the burner lever is pulled, or is it that you can pull the burner lever before the coal pieces are in?
(This post was last modified: 05-09-2013, 04:21 AM by Tomato Cat.)
05-09-2013, 04:21 AM
Find


Messages In This Thread
Setting up the elevator machine - by serbusfish - 05-07-2013, 01:30 AM
RE: Setting up the elevator machine - by Rapture - 05-07-2013, 03:09 AM
RE: Setting up the elevator machine - by Tomato Cat - 05-09-2013, 04:21 AM



Users browsing this thread: 1 Guest(s)