IsAnimPlayingExCond

From GECK
Jump to: navigation, search


A function added by the ShowOff NVSE Plugin.

Description

Like IsAnimPlayingEx, but has one less argument in order to be available as a Condition function, since conditions can only have two arguments.

Not meant for use in scripts - simply use IsAnimPlayingEx for that use case.

Syntax

[help]
(animPlaying:0/1) reference.IsAnimPlayingExCond category:int subType:int

1st Argument: Animation Categories

1	Miscellaneous
2	Movement
3	Attack
4	Reload
5	Weapon Jam

2nd Argument (Optional): Animation Sub-Types

Miscellaneous:

0	Any
1	Idle
2	(Un-)Equip/Holster
3	Block
4	Handgrip

Movement:

0	Any
1	Forward
2	Backward
3	Left
4	Right
5	Jump

Attack:

0	Any
1	AttackLeft
2	AttackRight
3	Attack3
4	Attack4
5	Attack5
6	Attack6
7	Attack7
8	Attack8
9	Attack9
10	AttackLoop
11	AttackSpin
12	AttackSpin2
13	AttackThrow
14	AttackThrow2
15	AttackThrow3
16	AttackThrow4
17	AttackThrow5
18	AttackThrow6
19	AttackThrow7
20	AttackThrow8
21	PlaceMine
22	PlaceMine2
23	AttackPower

Reload:

N/A

Weapon Jam:

N/A

Example

Below are some examples showing how to use this function in the GECK for conditions, such as Perk conditions.

IsAnimPlayingExCondExample1.PNG

The above checks if the reference is playing any Movement animation group.


IsAnimPlayingExCondExample2.PNG

The above checks if the reference is playing a Movement animation group of the Forward sub-type.


IsAnimPlayingExCondExample3.PNG

The above checks if the reference is playing an Attack animation group of the AttackLoop sub-type.


IsAnimPlayingExCondExample4.PNG

The above checks if the reference is playing any Weapon Jam animation group.