Quantcast
Channel: ZDoom
Viewing all articles
Browse latest Browse all 3391

Scripting • Re: Different projectiles depending on the player's movement (zscript)

$
0
0
OK, I figured out part of the problem on my own.

I just put this in the moment before the shot:

Code:

TNT1 A 0 A_JumpIf(GetPlayerInput(INPUT_BUTTONS) & BT_FORWARD, "ALT1");TNT1 A 0 A_JumpIf(GetPlayerInput(INPUT_BUTTONS) & BT_BACK, "ALT2");
Now I just want to know how to check if the player is in the air. (whether it actually jumps is irrelevant). If the player is in the air, then the code jumps to the state "ALT3";

Statistics: Posted by OddYokai — Sat Feb 03, 2024 7:49 am



Viewing all articles
Browse latest Browse all 3391

Trending Articles