DarkShiz Posted October 25, 2013 Share Posted October 25, 2013 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... Link to comment Share on other sites More sharing options...
squeek Posted October 25, 2013 Share Posted October 25, 2013 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. Link to comment 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 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.