AIDef:Action/WaitForFrame: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
imported>Leoetlino
import AI definitions from 1.5.0
 
Nebroc (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{AIDef
Waits for a specific amount of frames or for the Player to press a specific button.
 
[[AIDef:Action/EventWaitFrameAction|EventWaitFrameAction]] and [[AIDef:Action/WaitForKeyInput|WaitForKeyInput]] only wait for one of those 2 parameters.{{AIDef
|name=WaitForFrame
|name=WaitForFrame
|type=Action
|type=Action
Line 8: Line 10:
! Name !! Type !! Default value !! Description
! Name !! Type !! Default value !! Description
|-
|-
| ValidInput || Int ||  ||  
| ValidInput || Int ||  || Button to wait for
5 possible values:
 
* 0: A, B, X, Y, L, R, or ZR
* 1: B
* 2: A
* 3: B or A
* 4: Any button or stick except Plus, Minus, or D-Pad Up/Left/Right
 
Any other value will default to 4
|-
|-
|}
|}
Line 17: Line 28:
! Name !! Type !! Default value !! Description
! Name !! Type !! Default value !! Description
|-
|-
| Frame || Int ||  ||  
| Frame || Int ||  || Amount of frames to wait for
|-
|-
|}
|}

Latest revision as of 15:12, 24 October 2026

Waits for a specific amount of frames or for the Player to press a specific button.

EventWaitFrameAction and WaitForKeyInput only wait for one of those 2 parameters.

WaitForFrame
AI definition
Type Action

StaticInstParams

Name Type Default value Description
ValidInput Int Button to wait for

5 possible values:

  • 0: A, B, X, Y, L, R, or ZR
  • 1: B
  • 2: A
  • 3: B or A
  • 4: Any button or stick except Plus, Minus, or D-Pad Up/Left/Right

Any other value will default to 4


DynamicInstParams

Name Type Default value Description
Frame Int Amount of frames to wait for


Derived definitions

Demo_WaitForFrameOrKeyInput (EventSystemActor)

Name Value
ValidInput 1