Action: Letobjecty(variable, target)

Related Actions: move, moveto, movebyx, movebyy, movetorand, moverandx, moverandy, restrictx, restricty, letinitx, letinity, letobjectx,
See also: FKiSS, Events, Actions

letobjecty(variable, target)

First defined in: FKiSS3
The letobjecty action sets the value of variable to the current vertical position of target for the current set (page).

variable

variable must be a variable name.

target

In FKiSS3, target must be an object number.
In FKiSS4, target may be an object number or a variable representing an object number.

Example:

;@ letobjecty(Y, #5)     ; Put the current vertical position of object #5 into variable Y.
;@ letobjecty(Y, VarObj) ; Put the current vertical position of the object identified by variable VarObj into variable Y.