Skip to content

SetAnimKey

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
Blitz3D

SetAnimKey

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

Description

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.

Related Commands

AddAnimSeq, AnimLength, AnimSeq, AnimTime, ExtractAnimSeq, LoadAnimSeq, MD2AnimLength, SetAnimTime

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally