Call of Duty 4: Scripting Reference - Animation::AnimScripted
From COD Modding & Mapping Wiki
AnimScripted( <notify>, <origin>, <angles>, <animation>, <mode>, <root> )
Module: Animation
SP Only
Summary:
Runs an animscript on an entity.
Call this on: <entity> The entity to run the animscript on
Example:
driver AnimScripted( "germantruck_driver_closedoor", org , angles, driver.closedooranim );
Required arguments:
- <notify> The notify to send
- <origin> The starting position of the anim script
- <angles> The starting angle of the anim script
- <animation> The animation
Optional arguments:
- <mode> Valid modes are "normal" and "deathplant"
- <root> The root animation
Notes:
- none