Jump to content
Sign in to follow this  
ayser

setVariable + 1

Recommended Posts

So, i'm not exactly sure how to do this

I want to add 1 of _obj to the current variable.

I've got this

_obj setVariable["water",5,true];

I'm trying to do something along the lines of

_obj setVariable["water", count "water" +1,true];

(I know the above code is terribly wrong, but it's just for an example if you didn't understand the question)

Edit: PROBLEM SOLVED

player setVariable["water", (player getVariable "water")+1,true];

Edited by ayser

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×