aninerfan808 Posted November 24, 2011 Share Posted November 24, 2011 (edited) I am trying to put together a script that would pay the player for going to a certain spot and neither staying in an area for a game hour or preferably performing an action by triggering an animation. I will most likely have it done by walking over an activator. Any advise would be appreciated thanks in advance. Edited November 24, 2011 by aninerfan808 Link to comment Share on other sites More sharing options...
jamochawoke Posted November 24, 2011 Share Posted November 24, 2011 (edited) Here's some code to get you started for your activator. It's really rough but it's somewhere to start :thumbsup: scn PlayerPaySCRIPT short doOnce1 short doOnce2 float time begin GameMode if getdistance player <= 500 if doOnce1 == 0 set time to (I forget the function but put the one that checks game time here) set doOnce1 to 1 endif if (function that checks game time) >= time + 2 (however you put the hours in, say you want them to wait for 2 hours) if doOnce2 == 0 player.additem f 250 set doOnce2 to 1 endif endif endif end Edited November 24, 2011 by jamochawoke Link to comment Share on other sites More sharing options...
aninerfan808 Posted November 25, 2011 Author Share Posted November 25, 2011 (edited) Thanks for the help, anyone know what the time function would be and add an animation to it? Edited November 25, 2011 by aninerfan808 Link to comment Share on other sites More sharing options...
Recommended Posts