Skip to content

LoadAnimSeq

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

LoadAnimSeq

LoadAnimSeq:Int32 entity:Int32, file:String
Parameter Mode Type Default Description
entity In Int32 required The entity that receives the sequence.
file In String required File with the animation, for example a .b3d.

Returns: The number of the new sequence, which is also the highest sequence number the entity has. If the file cannot be read nothing is added and the number of the last existing sequence comes back; -1 means the entity has no animation.

Description

Loads the animation of a second file, such as a separate walk cycle, and appends it to an entity as a new sequence. The file must have the same bones as the model it is added to.

Examples

Graphics3D 320, 240, 0, 2
SetBuffer BackBuffer()
camera = CreateCamera()
light = CreateLight()

hero = LoadAnimMesh("hero.b3d")
PositionEntity hero, 0, -1, 5
jump = LoadAnimSeq(hero, "hero_jump.b3d")
Animate hero, 3, 1, jump

While Not KeyHit(1)
	UpdateWorld
	RenderWorld
	Flip
Wend

Related Commands

AddAnimSeq, AnimLength, AnimSeq, AnimTime, ExtractAnimSeq, LoadMD2, MD2AnimLength, MD2AnimTime

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally