SpaceDoktor Posted October 20, 2013 Share Posted October 20, 2013 I was wondering how do hounds spawn? By which I mean, how do hounds spawn, are they on a countdown timer? I ask, because I want to create an event that occurs every new moon, and includes a random spawning of several entities. I was wondering if it was possible and how does one go about doing it? Link to comment https://forums.kleientertainment.com/forums/topic/28904-hound-type-spawning-question/ Share on other sites More sharing options...
Craig_Perry Posted October 20, 2013 Share Posted October 20, 2013 I was wondering how do hounds spawn? By which I mean, how do hounds spawn, are they on a countdown timer? I ask, because I want to create an event that occurs every new moon, and includes a random spawning of several entities. I was wondering if it was possible and how does one go about doing it?check out hounded.lua that should show you a few things about the spawning Link to comment https://forums.kleientertainment.com/forums/topic/28904-hound-type-spawning-question/#findComment-348366 Share on other sites More sharing options...
SpaceDoktor Posted October 20, 2013 Author Share Posted October 20, 2013 check out hounded.lua that should show you a few things about the spawningIt think I understand how the hounds are brought into the game, but is it possible to make it happen every eight days at sunset. From what I understand is that, the code is telling it to spawn them after a certain amount of time from the last attack with some random aspects, correct? Link to comment https://forums.kleientertainment.com/forums/topic/28904-hound-type-spawning-question/#findComment-348373 Share on other sites More sharing options...
Craig_Perry Posted October 20, 2013 Share Posted October 20, 2013 (edited) It think I understand how the hounds are brought into the game, but is it possible to make it happen every eight days at sunset. From what I understand is that, the code is telling it to spawn them after a certain amount of time from the last attack with some random aspects, correct?well actually there are very few random aspects until you get to the escalation part self.timetoattack = 200self.warnduration = 30 that's the part for the timing, there may be an "inst." for the full moon so guesswork may not be needed inst.fullmoon (notsure if actualname)self.waverelease something like that, bear in mind I dont mod all that well, I am better with bug reports and log.txt's Edited October 20, 2013 by Craig_Perry Link to comment https://forums.kleientertainment.com/forums/topic/28904-hound-type-spawning-question/#findComment-348375 Share on other sites More sharing options...
SpaceDoktor Posted October 20, 2013 Author Share Posted October 20, 2013 SO would the best way to handle it do a prefab in the style of Hounds where multiple entities are under one file? ANd also, if I want to call it something like haunted should the instances of Hounded be changed to Haunted? Link to comment https://forums.kleientertainment.com/forums/topic/28904-hound-type-spawning-question/#findComment-348399 Share on other sites More sharing options...
Craig_Perry Posted October 20, 2013 Share Posted October 20, 2013 SO would the best way to handle it do a prefab in the style of Hounds where multiple entities are under one file? ANd also, if I want to call it something like haunted should the instances of Hounded be changed to Haunted?yes, it won't be easy though as theres a lot to manage Link to comment https://forums.kleientertainment.com/forums/topic/28904-hound-type-spawning-question/#findComment-348401 Share on other sites More sharing options...
SpaceDoktor Posted October 20, 2013 Author Share Posted October 20, 2013 (edited) Ok, so the entity is called 2spooky, 3spooky etc, so should the hound attack be changed to something like spooky? Or is the hound in most of the code names of events in other files that set it up to be a hound attack? I mean like function Haunted:SpawnModeEscalating()self.spawnmode = "escalating"self:PlanNextHoundAttack()end Edited October 20, 2013 by SpaceDoktor Link to comment https://forums.kleientertainment.com/forums/topic/28904-hound-type-spawning-question/#findComment-348406 Share on other sites More sharing options...
SpaceDoktor Posted October 20, 2013 Author Share Posted October 20, 2013 I was wondering if I was handling the spawning and prefabs correctly, are you willing to take a look? This is the full file Link to comment https://forums.kleientertainment.com/forums/topic/28904-hound-type-spawning-question/#findComment-348519 Share on other sites More sharing options...
Craig_Perry Posted October 21, 2013 Share Posted October 21, 2013 I was wondering if I was handling the spawning and prefabs correctly, are you willing to take a look? This is the full fileafraid I cant help beyond this point, my knowledge of lua is extremely limited Link to comment https://forums.kleientertainment.com/forums/topic/28904-hound-type-spawning-question/#findComment-348864 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