Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Scripting A Force Power "Recharge Time"

Page: 1 of 1
 e-varmint
08-28-2010, 10:56 AM
#1
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.
 moda
08-29-2010, 10:25 AM
#2
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
 e-varmint
08-29-2010, 1:00 PM
#3
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?
Page: 1 of 1