Page 1 of 1

Attacking NPC's

Posted: Wed Apr 19, 2017 10:53 am
by cokebot
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 :

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;
Thank you for answering

Re: Attacking NPC's

Posted: Wed Apr 26, 2017 12:35 am
by BlubBlab
you can take the NPC as a target and then manually hit it with you own code