OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: HuNtA on 30 Jun 2003, 20:49:06

Title: Counter problems
Post by: HuNtA on 30 Jun 2003, 20:49:06
I have a problem!
Im making a NOS management script so you can choose how much you use, and Ive got the counter as 100, but how do I pass it to each script!   ???

I havent made enough to show any1 so plz help!
Title: Re:Counter problems
Post by: Arrouan on 01 Jul 2003, 01:31:46
Part of solving a problem is stating it in a way people can understand what you are talking about  ???
Title: Re:Counter problems
Post by: HuNtA on 01 Jul 2003, 16:57:20
Im making a NOS script that lets you use 25% of tank, 50% and so on.
it uses a counter (_counter = 100) to show how much of the tank is left, and it takes away 25 from the 100 counter for useing 25% of the tank, but I dont know how to make sure U cant use 100% of the tank in another script in it
Title: Re:Counter problems
Post by: Artak on 01 Jul 2003, 17:02:15
just make the local variable _counter a global one by removing the _ in both scripts.  ???
Title: Re:Counter problems
Post by: HuNtA on 01 Jul 2003, 17:50:45
tx man, I shall try and post here if it doesnt