View Full Version : Scripting A Force Power "Recharge Time"
08-28-2010, 11:56 AM
Does anyone know how to script a "recharge time" for a force power? I want to restrict a particular power to one use every 2 minutes.
quite easily... just need to make a boolean variable and link a timer to it, while the bool is true the power can be used, when you use the power it sets the bool to false and waits till it is set to true again so it can be used. while during this time you could still cast the power no effects will take place except you will lose force points unless you code about it
08-29-2010, 02:00 PM
Thanks! I'll go read up on booleans!
To link it to the timer, I would use an fDuration similar to those used for shields?
vBulletin®, Copyright ©2000-2016, Jelsoft Enterprises Ltd.