Blockland Forums > General Discussion
Is it possible to have items with lights?
<< < (2/3) > >>
Conservative:

--- Quote from: MARBLE MAN on April 12, 2013, 06:11:35 PM ---flickering is because of loops, if you don't want flickering on and off, something new must be created

--- End quote ---
Could you not apply a lifetime to each light?, overlapping light times would disable the flickering.
otto-san:
hydralisk somehow managed it i think

idk if he actually did because i don't remember it too well and i never absorbed the code but i think it worked pretty well
Masterlegodude:
What if you do like the lantern item does, but have the onFire script mount the empty.dts object that will have the light script instead of the lantern_ON_Image and have it look something like this?

Something like this

--- Code: --- className = "WeaponImage";

shapeFile = "base/data/shapes/empty.dts";
emap = true;

item = lanternItem;
ammo = " ";
projectile = "";
projectileType = Projectile;

mountPoint = 0;
offset = "0 6 0";

correctMuzzleVector = false;

eyeOffset = ("0 6 0");

melee = true;
doRetraction = false;
armReady = true;

hasLight = true;
lightType = "ConstantLight";
lightRadius = 64;
lightColor  = "1 1 1 1.0";
--- End code ---

Doing this myself, it works, however, the light goes in the opposite direction of where the image is offset to and the light does not follow the model, it rotates on a pivot point of it's own, which i can't seem to figure out how to change
Altiris:
Well to tell you the truth I am wondering about this because recently Roblox got this and Blockland doesn't have this....Blockland being my favorite game, I am sort of embarrassed and want it to better than Roblox (have the feature to mount light sources on .DTS files). I hope Badspot can add some kind of support for this.
Klocko²:
Why not mount an invisible bot with a light to the flashlight
Navigation
Message Index
Next page
Previous page

Go to full version