jucoking Posted February 26, 2019 Share Posted February 26, 2019 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 More sharing options...
dylbill Posted February 27, 2019 Share Posted February 27, 2019 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. Link to comment Share on other sites More sharing options...
jucoking Posted February 28, 2019 Author Share Posted February 28, 2019 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 More sharing options...
dylbill Posted February 28, 2019 Share Posted February 28, 2019 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 More sharing options...
jucoking Posted February 28, 2019 Author Share Posted February 28, 2019 (edited) 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 February 28, 2019 by jucoking Link to comment Share on other sites More sharing options...
dylbill Posted February 28, 2019 Share Posted February 28, 2019 You should also duplicate the FlameCloakDmg spell and its magic effect. The damage spell is on the cloak magic effect (FireCloakFFSelf) under Assoc. Item 1. Link to comment Share on other sites More sharing options...
jucoking Posted March 1, 2019 Author Share Posted March 1, 2019 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 More sharing options...
dylbill Posted March 2, 2019 Share Posted March 2, 2019 I know you can use the null texture set in the CK to make things invisible. I've never done it on an actor though. Link to comment Share on other sites More sharing options...
Recommended Posts