IkarosGaming Posted May 27, 2017 Share Posted May 27, 2017 im trying to make a pet for my character ikaros angeloid the pet i had in mind is a watermelon that follows the character around heals if health is lower than its total the character and engages in combat with enemies i was hoping someone knew that code i need to use to implement that to my character here are the character files modinfo.lua modmain.lua ikaros.lua if anyone knows the code i need to use to do it that will be appreciated Link to comment Share on other sites More sharing options...
mikey99222 Posted May 28, 2017 Share Posted May 28, 2017 Well, the health can be done straight on the character by adding inst.components.health:StartRegen(amount, time) Into the section your health is in (master_postinit). inst.components.health:StartRegen(1, 5) will heal One health every Five seconds. As for pets the mod "glomster" could provide a framework (off of the steam workshop) Good luck. Link to comment Share on other sites More sharing options...
IkarosGaming Posted June 2, 2017 Author Share Posted June 2, 2017 ok thanks for the source just to ask is there anyting else that i could use to help build this mod ? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.