Jump to content

Knockback script


ZippyDSMlee

Recommended Posts

I'm trying to make a missile that always knocks back a target (not based on radius damage). So far it seems to only work on unaware targets 0-o

scn zippymissilefistKnockdownScript


Begin ScriptEffectStart

ref rTarget

set rTarget to GetSelf
Player.PushActorAway rTarget 104

End
Link to comment
Share on other sites

 

You don't need a script for that to work. You should set the weapon's Crit % Mult to 100 and make Crit Effect BigHornerKnockback or DeathClawKnockback.

Ya but I want them to be knocked back pretty far can you do that with the crit enchantment?

 

Oh god would help if I read ><

 

 

===============

 

I looked around the scripts and made this one with the appropriate effect attactment.

scn zippymissilefistknockbackScript

Ref Self
Float Random

Begin ScriptEffectStart


Set Self to GetSelf

		If Self.HasPerk Stonewall != 1
			Set Self to GetSelf
				player.PushActorAway Self 100
	


End

Okay new problem every 3 or 4 enemies the script will not work its almost like they are invincible I do not think even damage is calculated till I change weapons..

Edited by ZippyDSMlee
Link to comment
Share on other sites

GetSelf doesn't work on spawned leveled actors (actors with FF for the first two digits of their REFId). It only works for actors placed in the editor.

So its uneeded for the player? Its is a copy of meansonofabitch's knockback code btw.

 

Lets go test the dumb thing now LOLYu

 

====================

edit

Not working right still ><

Edited by ZippyDSMlee
Link to comment
Share on other sites

  • Recently Browsing   0 members

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