Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I already have the code for this, and already tested it on domesticated beefalos.
Add the following lines to modmain.lua:
-- CODE START
function IsDomesticated(b)
local owner = nil
if b.components.domesticatable and b.components.domesticatable:IsDomesticated() then
print ("Domesticated prefab found.")
return true
end
return false
end
-- CODE END
and then change the line from function CleanPrefab:
-- CODE START
if not IsInInventory(v) then
-- CODE END
into:
-- CODE START
if not IsInInventory(v) and not IsDomesticated(v) then
-- CODE END
Do you mind to update the mod so this function becomes native? People have been asking me how I've done it, so I guess this would be a nice addition for some people. :-)