Attacking NPC's
Posted: Wed Apr 19, 2017 10:53 am
Is it possible to attack NPC's with skills?
That means it must be possible to change this code from player.lua, for a waypoint :
Thank you for answering
That means it must be possible to change this code from player.lua, for a waypoint :
Code: Select all
-- don't target NPCs
if( target.Type == PT_NPC ) then -- NPCs are type == 4
debug_target("thats a NPC, he should be friendly and not attackable")
return false; -- he is not a valid target
end;