DarkShiz Posted October 25, 2013 Share Posted October 25, 2013 (edited) I've decided to make a hound that explodes into lightening when they are killed or summons it in a fight... something to make the game harder, currently the recolor art and main functions of a hound are working, I cannot get the lightening to work, I've tried to use other lightening codes from other mod's like agatha's death but it's not working. Anyone have some help for code to bring the lightening on the hound and make it not explode to death... Edited October 25, 2013 by DarkShiz Link to comment https://forums.kleientertainment.com/forums/topic/29053-lightening-hound/ Share on other sites More sharing options...
squeek Posted October 25, 2013 Share Posted October 25, 2013 (edited) To do the lightning strike: -- inst should be the houndlocal pos = inst:GetPosition()GetSeasonManager():DoLightningStrike(pos)To create the hound, you'll probably need to copy most of prefabs/hound.lua into a new prefab .lua and edit it to your needs. See the sample prefab mod. Edited October 25, 2013 by squeek Link to comment https://forums.kleientertainment.com/forums/topic/29053-lightening-hound/#findComment-352018 Share on other sites More sharing options...
DarkShiz Posted October 25, 2013 Author Share Posted October 25, 2013 Thanks, actually this is all I neded I just could not get the lightening code figured out! Thank you! You rock! Link to comment https://forums.kleientertainment.com/forums/topic/29053-lightening-hound/#findComment-352042 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now