Jump to content

Setting up an npc for a force punch


lynxphoenix

Recommended Posts

Ok, so I wanna make a script so I can punch a character and they fly like i've made a force push (like the spell), so that I can use it in machinima and stuff (thus it doesnt need any finesse, just look good on video).

 

I figured i couldn't force a spell to use a punch animation or something equivalent so i tried to make a spell that would "seed" so to speak, the character with a force push that would occur once I punched them (or hit them generally). in other words, a spell that i would cast on an npc, and any hit i make after casting the spell would make a force push (player.pushactoraway)

 

I made this script, activated on touch, but it doesnt work - in fact it seems to have no effect at all besides making the npc hostile (i've set it not to be hostile so i cant figure out what the heck is wrong). I cant nest the OnHit block in the ScriptEffectStart block so what else can i try?

 

 

SCN ForceSeedScript

 

ref pushed

 

Begin OnHit

set pushed to getself

player.PushActorAway pushed 100

End

 

I also tried

SCN ForceSeedScript

 

ref pushed

 

Begin ScriptEffectStart

set pushed to getself

End

 

Begin OnHit

player.PushActorAway pushed 100

End

 

any ideas are welcome ;)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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