darathas Posted July 26, 2010 Share Posted July 26, 2010 Hey all! this script is doing my head in lol. Okay, when it comes to adding/divding etc to a variable, how would you go about doing so? I tried set x to x /2 is this the incorrect way of doing so or is there a trick to it? Link to comment Share on other sites More sharing options...
ijarofjami Posted July 26, 2010 Share Posted July 26, 2010 By looking at the scripts of the game (for example the theif fine pay off is half the price of the normal pay off), that's what it looks like to me. Link to comment Share on other sites More sharing options...
Pronam Posted July 26, 2010 Share Posted July 26, 2010 Use the * instead. Like set x to x * 0.5. And depending on the outcome, try to use a float variable instead..sometimes it doesn't take a short or long variable in certain states. Link to comment Share on other sites More sharing options...
Recommended Posts