Current.cel

From AGI Wiki
Revision as of 21:26, 28 March 2019 by Andrew Korson (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The current.cel command stores the number of the current cel of a screen object in a variable.

Syntax

current.cel(obj oA, var vB);

Remarks

Variable vB is set to the current cel number for screen object oA.

Possible Errors

AGI does not check that object number oA is a valid object. If it is not, the returned value is meaningless.

Example

Code:

<syntaxhighlight lang="agi"> current.cel(o0, v50); [ v50 now holds ego's current cel number </syntaxhighlight>

Technical Information

Required Interpreter Version: Available in all AGI versions.
Byte-Code Value: 50 (0x32 hex)

See Also

current.loop
current.view
last.cel
set.cel
set.cel.v