RDNWiki: DOWScar/Functions/AnimPlaySyncAnim ...

RDN Wiki Home | Page Index | Recent Changes | Recently Commented | Users | Registration | Login:  Password:  

Anim_PlaySyncAnim


Makes an attacker of a unit play a specific kill/death animation


Void Anim_PlaySyncAnim(
SGroupID attacker,
SGroupID victim,
String killanim,
String deathanim,
Real distance

)


Parameters


attacker

The squad id of the attacking unit (which plays killanim).

victim

The squad id of the victim unit (which plays deathanim).

killanim

The name of the killing animation played by the attacker.

deathanim

The name of the death animation played by the victim.

distance

Unknown.

Description


Find the first entity in the attacking squad group and attack the first entity in the victim squad group capable of playing the anim.

Remarks


You will want to make sure the two squads are close to each other since the sync kill animation is going to 'pop' the units into place.

This function can be called through a CTRL object in NISlets to wait on the animation.

Example

Anim_PlaySyncAnim( 'sg_force_commander', 'sg_blood_thirster', 'SyncKill_7', 'SyncDeath_7')

Function Revisions


1.00: Initial function.

Source


LuaAnimator.cpp (Part of the internal game resources)

See Also


Categories: Anim

Referring pages: DOWScar/Functions/Index
DOWScar/Functions/IndexAnim

There are no files on this page. [Display files/form]
There is no comment on this page. [Display comments/form]