Knuckle Cracker

Creeper World 3 => The Coder's Corner => Topic started by: Xalos on March 04, 2015, 01:47:10 AM

Title: Setting a Command Node's AC Ammo
Post by: Xalos on March 04, 2015, 01:47:10 AM
I'm trying to remove AC from the player's command nodes, except it doesn't seem to actually do anything.  I can get the anticreeper in the command nodes with GetUnitAttribute, yet for some reason SetUnitAttribute won't change the value.  Am I doing it wrong?
Title: Re: Setting a Command Node's AC Ammo
Post by: warren on March 04, 2015, 03:55:37 AM
Possibly not. Hardcoded units have all sorts of unexpected limitations. In particular, many values are readonly.
Title: Re: Setting a Command Node's AC Ammo
Post by: pawel345 on March 04, 2015, 03:58:58 AM
Yes it's impossible to directly take or give energy and AC to a CM. You can do it by making an invisible, not taking any space CRPL core at the location of CM that would request AC ammo/ammo. As for adding energy/ore/aether to a player you need to make a resource deposit(crystal) and a syphon on it. 
Title: Re: Setting a Command Node's AC Ammo
Post by: Xalos on March 04, 2015, 09:42:31 AM
Thanks again, guys!