Anim_PlaySyncAnim
Makes an attacker of a unit play a specific kill/death animation
Parameters
attackerThe 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