Action: Letwidth(variable, target)

Related Actions: setkcf, letkcf, setfix, letfix, ghost, transparent, lettransparent, letinitx, letinity, letmapped, letobjectx, letobjecty, letheight, letcollide, letinside
See also: FKiSS, Events, Actions

letwidth(variable, target)

First defined in: FKiSS4
The letwidth action sets the value of variable to the total width of object target, counting only cels which are mapped and present in the current set (page).

variable

variable must be a variable name.

target

target may be an object number or a variable representing an object number.

Example:

;@ letwidth(W, #5)     ; Set W to the overall width of all cels in object #5.
;@ letwidth(W, VarObj) ; Set W to the overall width of all cels in the object identified by variable VarObj.