Can anyone tell me if this is right script
use tfs 1.2
the script is to make the player can not attack using the hotkeys in use on target only with crosshairs
use tfs 1.2
Code:
if isPlayer(creature:getTarget()) and creature:getTarget() ~= getTopCreature(Variant.getPosition(variant)).uid then
creature:sendCancelMessage("You can not shoot this directly on players.")
return false
end
the script is to make the player can not attack using the hotkeys in use on target only with crosshairs