- Joined
- Nov 23, 2023
- Messages
- 178
- Reaction score
- 26
its allways print "0" nad "empty". Why lua dont see weapon type? this is a creaturescript fragment.local itemType = ItemType(player:getSlotItem(CONST_SLOT_LEFT))
if itemType then
print(itemType:getWeaponType())
if itemType:getWeaponType() == WEAPON_AXE then
print("axe")
else
print("empty")
end
end