whitevo
Feeling good, thats what I do.
I don't understand how are these functions suppose to work..
They don't do anything in TFS 1.2
EDIT:
aaah, nvm it doesnt show light if its invisible :|
Anyone has better idea how to make light anywhere in game?
Next im gona try make a monster with floor sprite so i dont have to hide it.
I wish we could just setLight() on item xD
They don't do anything in TFS 1.2
Code:
-- monster who is immune and invisible and radiates light
local hide = Condition(CONDITION_INVISIBLE)
hide:setTicks(-1)
local light = Condition(CONDITION_LIGHT)
light:setTicks(-1)
function createLight(position, color, level)
local lamp = Game.createMonster("token", position, false, true)
lamp:addCondition(hide)
light:setParameter(CONDITION_PARAM_LIGHT_COLOR, color)
light:setParameter(CONDITION_PARAM_LIGHT_LEVEL, level)
lamp:addCondition(light)
end
Code:
function onUse(player, item, frompos, itemEx, topos)
createLight(topos, 215, 8)
return true
end
EDIT:
aaah, nvm it doesnt show light if its invisible :|
Anyone has better idea how to make light anywhere in game?
Next im gona try make a monster with floor sprite so i dont have to hide it.
I wish we could just setLight() on item xD
Last edited: