Blockland Forums > Modification Help

Attaching a Light to a Node

Pages: (1/1)

Mr.Noßody:

I was wondering if attaching a light to a node like "muzzelpoint" on a gun, is possible or not.
And If it is can I get some code for it?

Chrono:

I think lights attach to the mountpoint.

Mr.Noßody:

So a light cannot be attached to a node on an Item then?

Chrono:

Items:
lightType = NoLight, ConstantLight, or PulsingLight;
lightColor = rgba between 0 and 1;
lightTime = time in ms; (Probably for pulsing)
lightRadius = distance;
lightOnlyStatic = 1 or 0; (Means lights will only be on non-thrown items)

Images:
lightType = NoLight, ConstantLight, PulsingLight, or WeaponFireLight;
lightColor = rgba between 0 and 1;
lightTime = time in ms; (Probably for pulsing/WeaponFireLight)
lightRadius = distance;


Again, I think these will show up at the mountpoint, and these settings are for datablocks.
You could probably attach a real light to an item, but as for attaching to an image, it would have to be a left hand item and you would attach it like you would for doing /light

Mr.Noßody:

Man..It seemed so simple.

Pages: (1/1)

Go to full version