Get.priority
From AGI Wiki
Jump to navigationJump to searchThe get.priority command stores the current priority of a screen object in a variable.
Syntax
get.priority(obj oA, var vPRI);
Remarks
Variable vPRI is set to the priority of 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"> get.priority(o1, v50); print("Object 1 priority is %v50); </syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in all AGI versions. |
Byte-Code Value: | 57 (0x39 hex) |