• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Check action ID TFS 1.1

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..


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.
 
It doesn't recognize the key ActionID, change it to either .actionid or :getActionId().
 
I have tried .actionid still doesnt work. How would i use the :getActionId()? THis for for one fo the scripts from ORTS was working on old tfs 1.1 but since i updated to the new one it hasnt.
 
Sorry for double post but i cant get
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    if target.actionid == 1000 and target.itemid == 1369 or 1368 then

to work. Its the same deal for the barrell part of the ape city quest aswell. the actionid command doesn't work. recompiled fresh 3 times
 
Back
Top