Back to the Vavoom Forum Archives
Karnizero
Fire: PUNC A 1 A_Fire ????? <<----- Hold: PUNC BCD 2 A_Fire2 Goto ReadyIf i set a line in ???? like "Goto Ready", the weapon never goes to Hold, cause when "Fire" state reaches ?????, returns to "Ready" state. If i dont set "Goto Ready" at ????, then the weapon always goes through "Hold" state, and i only want to go "Hold" when the player really holds the weapon firing. How to solve this problem? Thanks in advance.
Janis Legzdinsh
Karnizero
Karnizero
Janis Legzdinsh
2.- Is there any way to know when the player unpresses the fire button? For example, make a weapon to charge, until the player releases the attack button, so he can have the weapon charged, and shot when he wants.Not really.
Crimson Wizard
2.- Is there any way to know when the player unpresses the fire button? For example, make a weapon to charge, until the player releases the attack button, so he can have the weapon charged, and shot when he wants.Not really. Umm, why? I made same thing with Use button, that is, as long as player holds 'Use', the power meter grows and when he releases it he commits some action with that current power. Basically you should make the check in Player::Tick:
if (Buttons & BT_ATTACK) { was_pressed = true; } else { if (was_pressed) ... }
Janis Legzdinsh
Karnizero