animate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(note on official models)
Line 37: Line 37:
<dd class="notedate">Posted on January 20, 2007</dd>
<dd class="notedate">Posted on January 20, 2007</dd>
<dt class="note">'''[[User:bdfy|bdfy]]'''</dt><dd class="note">Animated object have to be in sight of the player (or camera) for the animation to be actually performed. If the object is not seen, animationPhase will only return zero.</dd>
<dt class="note">'''[[User:bdfy|bdfy]]'''</dt><dd class="note">Animated object have to be in sight of the player (or camera) for the animation to be actually performed. If the object is not seen, animationPhase will only return zero.</dd>
<!-- Note Section END -->
<dd class="notedate">Posted on Aug 2007</dd>
<dt class="note">'''[[User:Mikero|Mikero]]'''</dt><dd class="note">Animations can be used on existing game models such as houses that have doors eg. The general syntax is house animate ["dvere1",1] to open the door and house animate ["dvere1",0] to close it. Whether used on Oem addons, or official ones, an internal working knowledge (via config.cpp) of the model's animated name(s) is required.</dd><!-- Note Section END -->
</dl>
</dl>



Revision as of 22:50, 23 August 2007

Hover & click on the images for description

Description

Description:
Process a linear animations on an object. Such animations are only used in user-made addons, they can be defined in the addon's config.cpp.
Groups:
Uncategorised

Syntax

Syntax:
object animate [animation, phase]
Parameters:
object: Object
animation: String - name of the animation. This is the class-name of the animation defined in the addon's config.cpp.
animationPhase: Integer - range 0 (start point of the animation) to 1 (end point of the animation). The speed, in which the animation is processed, is defined in the addon's config.cpp and cannot be changed during running missions.
Return Value:
Nothing

Examples

Example 1:
building animate ["maindoor", 1]

Additional Information

See also:
animationPhase

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Posted on January 20, 2007
bdfy
Animated object have to be in sight of the player (or camera) for the animation to be actually performed. If the object is not seen, animationPhase will only return zero.
Posted on Aug 2007
Mikero
Animations can be used on existing game models such as houses that have doors eg. The general syntax is house animate ["dvere1",1] to open the door and house animate ["dvere1",0] to close it. Whether used on Oem addons, or official ones, an internal working knowledge (via config.cpp) of the model's animated name(s) is required.

Bottom Section