Jump to content

[LE] Damage Player On Collision


jucoking

Recommended Posts

Is there a way to make an NPC damage the player on collision? I've been trying to create an enemy that does this but I'm not sure how this works in ck. Is it a hitbox or collision layer or just simply hard-coded in the system?

 

If all else fails, I think I can bypass this by making a damage trigger that follows the enemy movement, but I'd rather not have to Gerry-rig that up if there's an easier solution.

Link to comment
Share on other sites

You could make a new cloak spell and put it on the NPC, with a condition on the associated spell: GetIsID - Player, with the cloak having a very small range, so it only takes effect when the NPC is right next to the player.

Great thought, I tried it out and my enemy NPC isn't casting it, even after I forced it via script. I'm wondering if this is because the NPC is just a floating head and has no body attached like traditional NPC's.

 

I will keep trying because I think this is really the way to go. I also tried to attach the "trap" script that allows falling rocks to damage the player but that didn't work either.

Link to comment
Share on other sites

Make sure your cloak spell has the right structure. How cloak spells are set up is a bit tricky. You need two spells to make it work. The actual cloak spell, and the associated damage spell. Your GetIsId condition should be on the damage spell, and not the actual cloak spell. Also, the magnitude of the cloak spell determines how far it reaches. Look at a vanilla cloak spell, like the flame cloak, in the CK to get a better idea of how they're set up.

Link to comment
Share on other sites

Make sure your cloak spell has the right structure. How cloak spells are set up is a bit tricky. You need two spells to make it work. The actual cloak spell, and the associated damage spell. Your GetIsId condition should be on the damage spell, and not the actual cloak spell. Also, the magnitude of the cloak spell determines how far it reaches. Look at a vanilla cloak spell, like the flame cloak, in the CK to get a better idea of how they're set up.

You read my mind :wink: I actually just went ahead and duplicated the flame cloak spell (and magic effect) to try and get it to work without altering the original files, but it's still unclear how the cloak spell itself is associated with the damage spell. Any thoughts?

Edited by jucoking
Link to comment
Share on other sites

Couldn't get it to work but I did find a solution. I duplicated the skin (ARMO), the "naked" skin (ARMA), and the actor of the witchlight and changed the nif files associated with those to the decapitated glenmoril witch head.

 

The head now attacks like a witchlight and moves like one, but I'm still trying to get the witchlight itself to disappear and the head to float in mid-air.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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