jucoking Posted December 18, 2018 Share Posted December 18, 2018 Is it possible to shorten this to < a day? I have tried fiddling with the property but the cleanup doesn't seem to occur. Since the property name is "daysbeforecleanup" I assume 1.0 = 1 day, which should follow that 0.50 = 1/2 day and so on. Also, it's worth noting that I am trying to script this in an exterior cell. Should I just cell reset instead, if that's even possible via scripting? Link to comment Share on other sites More sharing options...
jucoking Posted December 18, 2018 Author Share Posted December 18, 2018 Sorry for the double-post, will try to delete as soon as I can access my PC. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted December 18, 2018 Share Posted December 18, 2018 Default is 0.5It is not a hidden property which means that whatever actor(s) the script may be attached to could have a different value assigned. Further more the value assigned to the property DaysBeforeCleanUp is further multiplied by 24 in order to convert the value into hours for the use with the WaitGameTime function. 0.5 * 24 = 12 Without assigning any value to the property, the default value kicks in and the body should be cleaned up after 12 game hours have passed. One thing to note, if you do change the value of the property via the properties window, any already loaded instance of the script will not update to reflect the new value. Thus it is always best to test on a new game or a game that has not seen the actor(s) in question using your new values. Link to comment Share on other sites More sharing options...
jucoking Posted December 18, 2018 Author Share Posted December 18, 2018 Okay, so if I delete the script from the actor it will go back to default, right? Sounds too complicated for what I'm trying to accomplish, so default is fine...especially since these are ash piles which, from my understanding, clean up faster than normal dead bodies. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted December 19, 2018 Share Posted December 19, 2018 Deleting the script is not the same as allowing the script to use default values. I do not know what would happen if you were to delete the script from the actor. Possibly their body will remain forever. Possibly the game will try to run the script anyway as the actor may have already been loaded with the script assigned before having removed it. But deleting the value (if any) assigned to the property will allow it to use the default value. Ash piles have a different script as they are placed objects rather than actors. Link to comment Share on other sites More sharing options...
jucoking Posted December 19, 2018 Author Share Posted December 19, 2018 Deleting the script is not the same as allowing the script to use default values. I do not know what would happen if you were to delete the script from the actor. Possibly their body will remain forever. Possibly the game will try to run the script anyway as the actor may have already been loaded with the script assigned before having removed it. But deleting the value (if any) assigned to the property will allow it to use the default value. Ash piles have a different script as they are placed objects rather than actors. Okay, thanks for the info, Ishara. This answers my questions perfectly well and it is much appreciated. Link to comment Share on other sites More sharing options...
Recommended Posts