drakylucas
Intermediate OT User
- Joined
- Dec 15, 2015
- Messages
- 236
- Solutions
- 7
- Reaction score
- 121
Hello guys,
I need help, how can I use addEvent with an item in action?
(TFS 1.2)
I need to transform the "target" item from action after ~3 seconds.
for player, I usually create a new instance
but how can I do it with "target" param? if I use target:transform(xxxx) in script, it works correctly, but if I use it on addEvent, this fail, and the argument target:getId() just return the ID of the item, so I can't transform it :s
thanks for help.
I need help, how can I use addEvent with an item in action?
(TFS 1.2)
I need to transform the "target" item from action after ~3 seconds.
for player, I usually create a new instance
PHP:
function event(cid)
local player = Player(cid)
end
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
addEvent(event,3000,player:getId())
return true
end
but how can I do it with "target" param? if I use target:transform(xxxx) in script, it works correctly, but if I use it on addEvent, this fail, and the argument target:getId() just return the ID of the item, so I can't transform it :s
thanks for help.