Author Topic: Static Shape  (Read 838 times)

How would one go about making a script that calls all static shapes in the map and gives them all a function such as .kill or .setnodecolor
(Those are way off from what I intend to do.)

Please, any help would be very much appreciated.

datablock StaticShapeData(name)
{
stuff
};

function name::kill(%this,stuff)
{
stuff
}

new StaticShape()
{
stuff
};

setnodecolor is either default, or must be done through the engine.

what about the function .indestructable=1; ? How would it be any different?

.indestructible = 1 is a variable, and not a function.

You would either put it in the datablock, or assign it to the object.

.indestructible = 1 is a variable, and not a function.

Oh. :(

Indestructable only applies to "Glass" shapes e.g. the Bedroom window, Bedroom lamp, Kitchen window (where it's used) and Kitchen ceiling lights.

Indestructable only applies to "Glass" shapes e.g. the Bedroom window, Bedroom lamp, Kitchen window (where it's used) and Kitchen ceiling lights.

Shhhhhh... I know.