Jump to content

Healing Weapon


Recommended Posts

The simplest way is to use an "OnFire" block, this will allow you to damage the player, with "Damage Actor Value Health", and restore the NPC's health using an "OnHit" block, "Restore Actor Value" and "GetOwnerLastTarget" (Sorry there's no link for this one, no-one's made the page for it. I'm happy to explain how to use it if you're unsure though!). Good luck! :)

Link to comment
Share on other sites

The simplest way is to use an "OnFire" block, this will allow you to damage the player, with "Damage Actor Value Health", and restore the NPC's health using an "OnHit" block, "Restore Actor Value" and "GetOwnerLastTarget" (Sorry there's no link for this one, no-one's made the page for it. I'm happy to explain how to use it if you're unsure though!). Good luck! :smile:

Yes can you explain what you said was complete chinese to me lol.

Link to comment
Share on other sites

Create a new script and use this code:

scn	HealingWeaponScript

ref	rTarget

begin OnFire

	set rTarget to player.GetCombatTarget
	if rTarget
		rTarget.RestoreActorValue Health 10
		player.DamageActorValue Health 10
	endif

end

Then set your weapon to use this script.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...