lordlazarus
New Member
- Joined
- Mar 28, 2016
- Messages
- 15
- Reaction score
- 0
Hi guys,
I need help on how I would make a function out of "onstepIn" to call the position of the effect. I know that inside the function would be easier, but would you be able to do it outside?
I think it would be something along those lines
local function itempos(item)
local pos = item:getPosition()
return true
end
function onStepIn(creature, item, position, fromPosition)
addEvent(itempos, 5000, creature.uid)
return true
end
I need help on how I would make a function out of "onstepIn" to call the position of the effect. I know that inside the function would be easier, but would you be able to do it outside?
I think it would be something along those lines
local function itempos(item)
local pos = item:getPosition()
return true
end
function onStepIn(creature, item, position, fromPosition)
addEvent(itempos, 5000, creature.uid)
return true
end