Talk:DamageActorValue

Active discussions

DamageAV QuestionEdit

I am trying to make it so when I press a key (C key) my companions enemy will get hurt. But it only seems to hurt himself. Help please!


scn aaaControl

ref Companion ref targetref

Begin Gamemode

 If IskeyPressed 46 == 1
   set targetref to Companion.GetCombatTarget
   Companion.Playgroup Attack4, 1
   targetref.DamageAV health 2
 Endif

End

Return to "DamageActorValue" page.