SetSolidMask

Category: Objects / Status
Since engine version: 1.0 OC

Description

Sets the solid area of an object. The source rectangle determines which pixels from the definition's SolidMask.png graphic should be used. All pixels within the rectangle of less than 50% transparency will be solid. Also see the SolidMask entry in DefCore.txt.

Syntax

void SetSolidMask(int x, int y, int width, int height, int target_x, int target_y);

Parameters

x:
X position of the top left corner of the new SolidMask rectangle within the definition's SolidMask.png image.
y:
Y position of the top left corner of the new SolidMask rectangle within the definition's SolidMask.png image.
width:
Width of the new SolidMask rectangle within the definition's SolidMask.png image.
height:
Height of the new SolidMask rectangle within the definition's SolidMask.png image.
target_x:
X target position of the SolidMask relative to the top left corner of the object graphic.
target_y:
Y target position of the SolidMask relative to the top left corner of the object graphic.

Remark

Solid areas will internally be drawn in the landscape using the "Vehicle" material.

Example

SetSolidMask();
Removes the SolidMask for the calling object.
Sven2, 2014-01