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
Tinderbox count?
Anxt Offline
Senior Member

Posts: 588
Threads: 12
Joined: Mar 2011
Reputation: 10
#6
RE: Tinderbox count?

You would end up doing that, yes, but there is a very easy way to do it:

In your OnStart:

SetEntityPlayerInteractCallback("tinderbox_*", "Tindercounter", false);



Then:

void Tindercounter(string &in asEntity)
{
AddGlobalVarInt("TinderCount", 1);
}



That will add 1 to the variable every time you pick one up. Just add it to every map and it will continue counting up every time you pick one up.

04-26-2011, 05:02 AM
Find


Messages In This Thread
Tinderbox count? - by Moonsun - 04-26-2011, 03:51 AM
RE: Tinderbox count? - by Anxt - 04-26-2011, 03:57 AM
RE: Tinderbox count? - by Moonsun - 04-26-2011, 03:58 AM
RE: Tinderbox count? - by Anxt - 04-26-2011, 04:13 AM
RE: Tinderbox count? - by Moonsun - 04-26-2011, 04:28 AM
RE: Tinderbox count? - by Anxt - 04-26-2011, 05:02 AM
RE: Tinderbox count? - by Moonsun - 04-26-2011, 05:22 AM
RE: Tinderbox count? - by Anxt - 04-26-2011, 05:32 AM
RE: Tinderbox count? - by Moonsun - 04-26-2011, 06:55 AM
RE: Tinderbox count? - by Tottel - 04-26-2011, 08:17 AM
RE: Tinderbox count? - by Anxt - 04-26-2011, 03:11 PM
RE: Tinderbox count? - by Kyle - 04-26-2011, 09:02 PM



Users browsing this thread: 1 Guest(s)