S2ENGINE HD  1.4.6
Official manual about S2Engine HD editor and programming
DecalObject

Base Class: SceneObject

Decalobject.jpg

Overview

A Decalobject is an object that generally appears when a Projectile hit a wall. It is pushed on the wall surface representing the effect of the Projectile impact on that surface. Projectile activates automatically a decal, if specified, but, using script, you can also activate and project a DecalObject torward a direction using the ApplyDecal function.

Parameters
Size(float) Size of the decal.
SizeVariance(float) max variation in size. Decal size is computed by summing the size with some random quantity that can assume values from 0.0 to SizeVariance.
Material(material filename) decal material.
life(float) decal life time, in millisecond. For example a value of 5000 means that decal is destroyed after 5 seconds.
Displace(float) Distance of decal from the wall. Do not modify, reserved to the system.
onWater(bool) if true the decal is generated only on water plane.
surfIDID for overlapping decals sorting. Decals with greater values overlap smaller ones.

Receiving Messages

none

Sending Messages

none

See also
Messages