strutZ
Australian OT Member {AKA Beastn}
- Joined
- Nov 16, 2014
- Messages
- 1,393
- Solutions
- 7
- Reaction score
- 552
I cant seem to understand this at all.. I'm trying to make the script check the action id and if it is equal too 1000 execute script but it doesnt work..
If i remove the if statement the command works. I'm not getting any errors.
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if target.ActionID == 1000 then
fromPosition.z = fromPosition.z + 1
player:teleportTo(fromPosition, false)
return true
end
end
If i remove the if statement the command works. I'm not getting any errors.