BaseAttribute
Posted: Sun Jan 06, 2013 3:53 pm
Can the base attribute for a specific unit be changed dynamically?
For example, I've several 37mm on the map but I want some of them be immobile (can not be carried).
I see that setting:
SetAttrib(id, "CanBeCarried", 0)
doesn't work because the LOAD file use the BaseAttribute, and there is not a SetBaseAttribute function.
I know I can modify the LOAD file, or duplicate the unit in the Squads file changing the base value, but a dynamically way will be preferred.
For example, I've several 37mm on the map but I want some of them be immobile (can not be carried).
I see that setting:
SetAttrib(id, "CanBeCarried", 0)
doesn't work because the LOAD file use the BaseAttribute, and there is not a SetBaseAttribute function.
I know I can modify the LOAD file, or duplicate the unit in the Squads file changing the base value, but a dynamically way will be preferred.