SetSolidMask

Category: Objects / Status
Since engine version: 4.6.5.0 CP

Description

Sets the solid area of an object. The source rectangle determines which pixels from the definition 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

bool SetSolidMask (int iX, int iY, int iWdt, int iHgt, int iTx, int iTx, object pObj);

Parameters

iX:
X position of the top left corner of the new SolidMask rectangle within the definition graphic
iY:
Y position of the top left corner of the new SolidMask rectangle within the definition graphic
iWdt:
Width of the new SolidMask rectangle within the definition graphic
iHgt:
Height of the new SolidMask rectangle within the definition graphic
iTx:
X target position of the SolidMask relative to the top left corner of the object graphic
iTx:
Y target position of the SolidMask relative to the top left corner of the object graphic
pObj:
[opt] Object the solid area of which you want to change. Can be 0 in local calls.

Remark

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

Example

SetSolidMask();
Removes the SolidMask for the calling object.
Sven2, Juni 2003