OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ding on 20 Jun 2005, 06:33:04
-
this has probably been asked about before but i searched the forum and dident find much. What i want to do is have a kind of money system, where say yo uactivate a trigger it goes up by 100, i think this gan be done with logics, but i do not know how to make the money go up, e.g. i can set it to a certain number to start with like startmoney = 100, but idont know how to make it increase from the current number with another command, can someone help me please :)
-
startmoney = startmoney + 100
Now you'll be $100 richer ;)
-
thanks :D will this work in multiplayer as i know ofp has its probelms with logics through multiplayer
-
startmoney = startmoney + 100; publicVariable "startmoney"
now you're $100 richer and everybody knows ;)
~S~ CD
-
thanks, i was going to ask about that :D
-
New questio nrelated to this, how do i get it to desplay the amount of money to the player when the logic which plus 50's the total amount of money is activated, as in how do i get it to show the current amount of players money?