Is it possible to make a monster follow another monster? Created 2 weeks ago2019-10-03 11:51:38 UTC by abbadon abbadon

Created 2 weeks ago2019-10-03 11:51:38 UTC by abbadon abbadon

Posted 2 weeks ago2019-10-03 11:51:38 UTC Post #343184
I know scientists do, but, would not it be troublesome for monsters spawned by monstermakers?
Posted 2 weeks ago2019-10-03 21:22:50 UTC Post #343185
I think it's possible.
Admer456 Admer456Lean, mean, mapping machine :3
Posted 2 weeks ago2019-10-03 23:10:00 UTC Post #343186
A monster following another monster? Like, actively? I'm not sure that you could. Unless you faked it or the monster was trying to kill the other...
Jessie JessieLadytype
Posted 2 weeks ago2019-10-04 09:52:50 UTC Post #343187
Abbadon has coding powers, so of course it's possible. The scientist class has a follow task&schedule:
User posted image
And it's handled somewhere in the GetSchedule function:
User posted image
Keep in mind that this is scientist-specific, so you don't necessarily have to make your monsters heal each other. But you can. :D

If you base your monster off CTalkMonster, I believe you could get such monsters (that are spawned by a monstermaker) to follow a certain thing:
User posted image
You can call StartFollowing and pass it the entity you need the monster to follow. I'm not exactly sure what approach you're going for, but I think this is approximately what you need to follow a monster. :)
Admer456 Admer456Lean, mean, mapping machine :3
Posted 2 weeks ago2019-10-04 13:57:36 UTC Post #343188
Ok, Admer!! but remember that I struggle even with the "Hello World" program :walter: ha, ha!!! I will try to implement those parts into the infantry coder (monster_gunner.cpp).

Thanks! :crowbar:
You must be logged in to post a response.