Page 1 of 1

inanimate targets?

Posted: Fri Oct 02, 2015 6:48 pm
by Braziliano
Is it possible to add inanimate targets to your list of things to heal..? , Hmm is there a way to add more stuff to Party HEAL .. i don't want to rely on a seperate monitor script , tryed it in the past and it's not efficient enough.

Re: inanimate targets?

Posted: Fri Oct 02, 2015 7:47 pm
by kenzu38
Looked quickly into party.lua. Seems like you can add things manually to the table of things to heal. Have a look at it. In your party.lua file look at PartyTable() function, adding these table.insert() lines after the for loop will probably do the trick:

Code: Select all

	table.insert(partymemberName,#partymemberName+1, "inanimate target's name")
		if player:findNearestNameOrId("inanimate target's name") then
		table.insert(partymemberObj,#partymemberObj+1, player:findNearestNameOrId("inanimate target's name"))
		table.insert(partymemberpawn,#partymemberpawn+1, CPawn(partymemberObj[#partymemberObj].Address))
		end

Re: inanimate targets?

Posted: Fri Oct 02, 2015 10:40 pm
by Braziliano
kenzu38 wrote:Looked quickly into party.lua. Seems like you can add things manually to the table of things to heal. Have a look at it. In your party.lua file look at PartyTable() function, adding these table.insert() lines after the for loop will probably do the trick:

Code: Select all

	table.insert(partymemberName,#partymemberName+1, "inanimate target's name")
		if player:findNearestNameOrId("inanimate target's name") then
		table.insert(partymemberObj,#partymemberObj+1, player:findNearestNameOrId("inanimate target's name"))
		table.insert(partymemberpawn,#partymemberpawn+1, CPawn(partymemberObj[#partymemberObj].Address))
		end
~
how about friendly targets such as NPCs? for example the honor guard in siege

Re: inanimate targets?

Posted: Sat Oct 03, 2015 12:36 pm
by kenzu38
Yeah, I think so. If the game allows you to heal it manually then yeah you can automate it with bot.