I'm with a maps project, creations coop (coop Sveen style and Half Life)
and wanted to know if there is any way to make NPCs give a point when they are murdered.
is it possible?
edited 1×, last 25.04.13 04:32:06 pm
Scripts
killing one NPCs get scores...
killing one NPCs get scores...
1

addhook('objectkill', 'objectkillHook')
function objectkillHook(dynid, id)
	if object(dynid, 'type') == 30 then
--stuff
	end
end
addhook('objectkill', 'objectkillHook')
function objectkillHook(dynid, id)
if object(dynid, 'type') == 30 then
		parse('setscore '..id..' '..(player(id,"score")+1))
end
end
EP has writtenaddhook('objectkill', 'objectkillHook')
function objectkillHook(dynid, id)
if object(dynid, 'type') == 30 then
		parse('setscore '..id..' '..(player(id,"score")+1))
end
end
omg has written
1
