Talk:DamageActorValue

From GECK
Jump to: navigation, search

DamageAV Question

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