Number.of.loops: Difference between revisions
From Sierra Wiki
Jump to navigationJump to search
m (2 revisions imported) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 00:11, 3 June 2024
The number.of.loops command stores the number of loops in an object's assigned view in a variable.
Syntax
number.of.loops(obj oA, var vB);
Remarks
Variable vB is set to the number of loops in the view assigned to screen object oA.
Possible Errors
AGI does not check that object number oA is a valid screen object. If it is not, the returned value will be meaningless.
Example
Code:
<syntaxhighlight lang="agi"> animate.obj(o1); load.view(2); [ load and set.view(o1, 2); [ assign a view number.of.loops(o1, v51); [ v51 now equals number of loops in view 2 </syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in all AGI versions. |
Byte-Code Value: | 53 (0x35 hex) |