1
Other Packages / SGSK - Missile question
« on: October 02, 2014, 10:29:57 AM »
Looking for best place to limit Missile launch, Im going to pass a bool from another script. To allow me to wait for missile bay doors to open before firing. In fact i plan to have all secondary attacks/abilities be checked against a var.
That being said would this be the best place to check if my bay doors are open(set to true or false)?
was testing earlier with missile.cs script but now i think this is a better place to check bool.
Side note haven't torn thru missiles yet, i know there is a energy depletion on fire? is there a missile count variable in place already? I could re-task from unlimited or must i add one?
That being said would this be the best place to check if my bay doors are open(set to true or false)?
was testing earlier with missile.cs script but now i think this is a better place to check bool.
- // Fire the secondary weapon and check for secondary bay is open
- if (mSecondary.Count > 0 && (Input.GetMouseButton(1) || Input.GetKey(KeyCode.JoystickButton5)))
- {
- if (mNextSecondary < Time.time)
- {
- mNextSecondary = Fire(mSecondary);
- }
- }
Side note haven't torn thru missiles yet, i know there is a energy depletion on fire? is there a missile count variable in place already? I could re-task from unlimited or must i add one?
