Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Restoring broken item
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#13
RE: Restoring broken item

(Sorry for the double post)

I tried what you said, but it's still not working, and I can't determine why. Destroying the first potash ("potash_1") causes a second one to pop up, but no more are created after that.

PHP Code: (Select All)
void CheckGold(string &in asTimer)
{
    
int x GetLocalVarInt("PotAshNumber");
    if (
GetPropHealth("potash_"+x) < 1)
    {
        if (
GetLocalVarInt("Pillar") == 1)
        {
            
AddTimer(""0.0f"StartScene");
            
SetEntityActive("SignArea_1"false);
        }
        else
        {
            
AddLocalVarInt("PotAshNumber"1);
            if (
GetLocalVarInt("PotAshNumber") < 11)
            {
                
CreateEntityAtArea("potash_"+x"crystal_rock_02.ent""FulmGoldArea"false);
                
AddTimer("check"0.1f"CheckGold");
            }
        }
    }
    else
    {
        
AddTimer("check"0.1f"CheckGold");
    }


08-07-2013, 04:30 AM
Find


Messages In This Thread
Restoring broken item - by Damascus - 08-04-2013, 04:05 AM
RE: Restoring broken item - by 7heDubz - 08-04-2013, 05:13 AM
RE: Restoring broken item - by Daemian - 08-04-2013, 05:20 AM
RE: Restoring broken item - by Damascus - 08-04-2013, 05:48 AM
RE: Restoring broken item - by Your Computer - 08-04-2013, 09:48 AM
RE: Restoring broken item - by Statyk - 08-05-2013, 03:19 AM
RE: Restoring broken item - by Damascus - 08-05-2013, 06:02 AM
RE: Restoring broken item - by Daemian - 08-05-2013, 05:57 AM
RE: Restoring broken item - by Adrianis - 08-05-2013, 12:25 PM
RE: Restoring broken item - by Damascus - 08-05-2013, 10:43 PM
RE: Restoring broken item - by Adrianis - 08-06-2013, 10:53 AM
RE: Restoring broken item - by Damascus - 08-07-2013, 01:40 AM
RE: Restoring broken item - by Damascus - 08-07-2013, 04:30 AM
RE: Restoring broken item - by Adrianis - 08-07-2013, 09:40 AM
RE: Restoring broken item - by Damascus - 08-07-2013, 08:51 PM
RE: Restoring broken item - by Adrianis - 08-07-2013, 10:27 PM
RE: Restoring broken item - by Damascus - 08-08-2013, 12:24 AM
RE: Restoring broken item - by Adrianis - 08-08-2013, 11:11 AM
RE: Restoring broken item - by Damascus - 08-08-2013, 09:26 PM



Users browsing this thread: 2 Guest(s)