image_mask_toggle - Invert a status flag on the specified object
nil
image_mask_toggle( vid, maskval )
- 1
- an invalid maskval is considered a terminal state transition.
function image_mask_toggle0()
a = fill_surface(32, 32, 255, 0, 0);
for i=1,4 do
if (image_hit(a, 0, 0)) then
print("pickable");
else
print("unpickable");
end
image_mask_toggle(a, MASK_UNPICKABLE);
end
end
function image_mask_toggle0()
image_mask_set(WORLDID, math.random(1000));
end
image_mask_set(3) image_mask_clear(3)
image_mask_clearall(3)