e-varmint Posted August 28, 2010 Share Posted August 28, 2010 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. Link to comment Share on other sites More sharing options...
moda Posted August 29, 2010 Share Posted August 29, 2010 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 Link to comment Share on other sites More sharing options...
e-varmint Posted August 29, 2010 Author Share Posted August 29, 2010 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? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.