- Joined
- Mar 20, 2014
- Messages
- 67
Hi All,
I'm working on creating a basing system (I can post it here after I've polished it) and I'm trying to make it like Vampirism Fire's. However after a base is claimed I want to cancel when they try to build in another base. I've tried ordering the constructing unit to "cancel" I've tried the OrderId of that same order (851976), and I've tried this method below
Does anyone know why it doesn't work at all or have any other methods? It clears the selection and selects the unit for me, but it never seems to cancel regardless of what I build
Thanks
- Zach
I'm working on creating a basing system (I can post it here after I've polished it) and I'm trying to make it like Vampirism Fire's. However after a base is claimed I want to cancel when they try to build in another base. I've tried ordering the constructing unit to "cancel" I've tried the OrderId of that same order (851976), and I've tried this method below
Code:
if(GetLocalPlayer() == Player(pNum)) {
DisplayTextToPlayer(GetLocalPlayer(), 0, 0, "You have already claimed Base "+I2S(i)+". To remove your claim destroy all buildings in that base.");
ClearSelection();
SelectUnit(GetConstructingStructure(), true);
ForceUICancel();
}
Does anyone know why it doesn't work at all or have any other methods? It clears the selection and selects the unit for me, but it never seems to cancel regardless of what I build
Thanks
- Zach