CastPXS
Category: Landscape
Since engine version: 5.1 OC
Description
Casts material pixels at the specified position. In local calls, the coordinates are an offset to the position of the calling object.
Syntax
int CastPXS(string material_name, int amount, int level, int x, int y, int angle, int angle_variance);
Parameters
- material_name:
Material name
- amount:
Amount
- level:
Strength.
- x:
X coordinate
- y:
Y coordinate
- angle:
[opt]
Angle into which the material pixels are casted.
- angle_variance:
[opt]
Maximum deviation from that angle. If not given the material pixels will all be casted into all directions.
Example
CastPXS("Lava", 6000, 30);
Casts 6,000 lava pixels at the position of the calling object.
jwk, 2002-04
Newton, 2009-07