User talk:Knorke
From Spring
how a knorke brain work ?
- how the knorke game maker moderator engine dev who writed :
--- knorke says:
dont use the stupid GetUnitValue with stilly number parameter,...blablah... Using numbers is evil TA style!
- feel not acting felony when showing factory in NOTreleased mods and by playing activelly often ZK corecommander COB factory ?
what your meaning ?
- infiltrating evil group of TA atari suppots /server owners /engine owner/devs for convert them to remove all copyright infrigement and factory of their OWNED mod(+engine) ?
- being a pure troll unaware of being illogic ?
- being nice & quiet for not shocking mad people having the power to crush insurgent but still pushing slowly in the good direction ?
knorke says:
In example, script wants to get health of unit:
1) Spring.UnitScript.GetUnitValue(4)
Very confusing, what does 4 mean? Reader does not know. I hate looking at scripts and see many numbers with no meaning!
2) Spring.UnitScript.GetUnitValue(COB.BUILD_PERCENT_LEFT)
Number replaced with constant, is better now.
3) health=Spring.GetUnitHealth(unitID)
I like this one best.
http://springrts.com/wiki/Animation-LuaCallins
- BTW, don't forget to set INBUILDSTANCE to 1 to start building! For lua script, that is
- function script.StartBuilding(heading, pitch)
- SetUnitValue(COB.INBUILDSTANCE, 1)
- end
- function script.StopBuilding()
- SetUnitValue(COB.INBUILDSTANCE, 0)
- end
knorke says:
yes, for 2 or 3 things there is no other function and SetUnitValue must be used. (for now?)
But again, use
SetUnitValue(COB.INBUILDSTANCE, 0)
and not
SetUnitValue(5, 0)