iWitch Posted March 19, 2014 Share Posted March 19, 2014 There some outer area from player where animals/plants is going to sleep(?) stage So question is how big this area where animals do something? what radius from player? is it depends on screen resolution? inb4 look in source code Link to comment https://forums.kleientertainment.com/forums/topic/33177-active-area/ Share on other sites More sharing options...
DevilXD Posted March 20, 2014 Share Posted March 20, 2014 I think, it's about 2-3 screens around a player... Game unloads everything to save memory... Link to comment https://forums.kleientertainment.com/forums/topic/33177-active-area/#findComment-434891 Share on other sites More sharing options...
debugman18 Posted March 21, 2014 Share Posted March 21, 2014 (edited) If I remember right, the sleep distance is determined by a number of factors (hardware you're running, version you're running, other stuff?). This is what @squeek said, I'm not sure if this has changed. Edited March 21, 2014 by debugman18 Link to comment https://forums.kleientertainment.com/forums/topic/33177-active-area/#findComment-435396 Share on other sites More sharing options...
squeek Posted March 21, 2014 Share Posted March 21, 2014 (edited) This is what @squeek said, I'm not sure if this has changed.And I was paraphrasing something I saw someone else say (probably simplex). I do know that it's not controlled by Lua, though, so it's something we can't be totally sure about unless a dev clarifies it. Edited March 21, 2014 by squeek Link to comment https://forums.kleientertainment.com/forums/topic/33177-active-area/#findComment-435415 Share on other sites More sharing options...
iWitch Posted March 21, 2014 Author Share Posted March 21, 2014 I do know that it's not controlled by Lua, though, so it's something we can't be totally sure about unless a dev clarifies it. thx, it saved my time on looking into lua scripts. but is it possible to hook when animal going to sleep stage and when back to active life? longupdate? Link to comment https://forums.kleientertainment.com/forums/topic/33177-active-area/#findComment-435422 Share on other sites More sharing options...
Heavenfall Posted March 21, 2014 Share Posted March 21, 2014 Everything in their prefab function still runs, only the brain goes to sleep. Link to comment https://forums.kleientertainment.com/forums/topic/33177-active-area/#findComment-435425 Share on other sites More sharing options...
iWitch Posted March 21, 2014 Author Share Posted March 21, 2014 (edited) btw its interesting, but probably active area can be changed local x,y,z = GetPlayer().Transform:GetWorldPosition() TheSim:SetActiveAreaCenterpoint(x,y,z)functions OnEntitySleep and OnEntityWake is what i asking about or its just for ingame sleeping? Edited March 21, 2014 by iWitch Link to comment https://forums.kleientertainment.com/forums/topic/33177-active-area/#findComment-435431 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