Cloning is not registered as building!

Cloning is not registered as building!

A fresh perspective on battle for control of Earth, brought to you by Sanada and Snoop.

Moderators: Moderators, Content Developer

Post Reply
yanom
Posts: 323
Joined: 10 Jul 2009, 23:34

Cloning is not registered as building!

Post by yanom »

function Spring.GetUnitIsBuilding (unitID), when used where unitID is a unit currently cloning itself, returns nil, meaning that the game isn't registering the unit as building something.

I was trying to use this function in YMSAI to stop the runnaway production of everything... but it won't work because of this. I've been trying things for like three hours straight... I'm a wit's end. I'm going to need knorke or someone else to tell me how to fix the overproduction bug.

My source code is attatched
Attachments
tp_YMSAI.lua
(22.15 KiB) Downloaded 135 times
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Cloning is not registered as building!

Post by aegis »

if you're the one issuing clone orders, it's fairly easy for you to track them yourself
Post Reply

Return to “Conflict Terra”