Jump to content

Recommended Posts

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 by DarkShiz
Link to comment
https://forums.kleientertainment.com/forums/topic/29053-lightening-hound/
Share on other sites

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 by squeek

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...