HitOverride/fr

From M.U.G.E.N Wiki

Jump to: navigation, search


This page is in progress of being translated to fr. You can help translating it or go to another language version that follows:



State Controller: HitOverride

Defines a hit override. If the player is hit by an attack of the specified type, he will go to the specified state number instead of his default gethit behavior. Up to 8 hit overrides can be active at one time.

Required parameters:
attr = attr_string (string)
Standard hit attribute string specifying what types of hits to override. See HitDef's description for the "attr" parameter.
Optional parameters:
slot = slot_no (int)
Specifies a slot number (0 to 7) to place this hit override in. Defaults to 0 if omitted.
stateno = value (int)
Specifies which state to go into if hit by a HitDef with the specified attributes. Defaults to -1 (no change) if omitted.
time = effective_time (int)
Specifies how long this hit override should be active. Defaults to 1 (one tick). Set this to -1 to have this override last until overwritten by another one.
forceair = value (boolean)
If set to 1, the player's gethit variables will be set as if he was in an aerial state when hit. Useful if you want to force the player to fall down from any hit. Defaults to 0 if omitted.
Notes:
If 1 or more HitOverrides are active, P1 will not be affected by any of P2's HitDefs that have a p1stateno or p2stateno parameter.
Example:
none


Personal tools