Skip to content

SetAnimKey

Claude edited this page Oct 26, 2026 · 6 revisions

SetAnimKey

Command Index · Blitz3D · Animation

SetAnimKey entity%, frame%, pos_key%=1, rot_key%=1, scale_key%=1

Works in: Blitz3D

Records the entity's current position, rotation and scale as a keyframe at the given frame. After the keys are made, AddAnimSeq turns them into a sequence that Animate and SetAnimTime can play, with the frames between the keys interpolated. Use it on the bones of a hand-built model or on any entity that you want to animate by keys.

Each of the three flags decides which part of the pose is stored. Setting a key again at the same frame replaces the old one.

Parameter Type Default Description
entity Int required The entity whose pose is recorded.
frame Int required Frame number of the key, starting at 0.
pos_key Int 1 True to store the position. Defaults to True.
rot_key Int 1 True to store the rotation. Defaults to True.
scale_key Int 1 True to store the scale. Defaults to True.

Related commands

Command Index · Blitz3D · Animation

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally