GSC reference › Built-in

AnimScripted()

Built-in (engine) Server Called on: entity

Runs an animscript on an entity.

Signature

<entity> AnimScripted(<notify>, <origin>, <angles>, <animation>, [mode], [root], [rate], [blend], [lerp], [animation time], [is_scene_animation], [showPlayerWeaponInFirstPerson])

Called on an entity: entity AnimScripted(...)

Parameters

NameRequired?Details
notifyRequired The notify to send
originRequired The starting position of the anim script
anglesRequired The starting angle of the anim script
animationRequired The animation
modeOptional Valid modes are "normal" and "deathplant"
rootOptional The root animation
rateOptional The playback rate of animation
blendOptional The blend time for the animation
lerpOptional The lerp time for an aligned animation
animation timeOptional The starting animation time in 0-1 range
is_scene_animationOptional Should be true for player scene animations or scripted animations where the player has no control, can be ignored for non-players
showPlayerWeaponInFirstPersonOptional determines if the first person player should have his weapon during cinematics

Example (from Treyarch's docs)

driver AnimScripted( "germantruck_driver_closedoor", org , angles, driver.closedooranim )

Real uses in BO3's scripts

Called 116 times in the decompiled scripts. A few, zombies first:

Related built-ins

New to GSC?

Start with the basics, or paste a compile error to get the fix.

Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).