Coding problems
Hey, i want to set the default rally point to a structure.
Like if the roboticsfactory spawn an arc, the arc should have an rally point to the closest hive, i have no idea how to set it.
You know, the commander click on the RF and "set rally point" if he click somewhere.
Like if the roboticsfactory spawn an arc, the arc should have an rally point to the closest hive, i have no idea how to set it.
You know, the commander click on the RF and "set rally point" if he click somewhere.
Comments
Maybe set an offset to the origin.
i tried it already.
Example Code: maybe i did something wrong?
Console said, commands are created, the arc did spawn, but did not move.
Can be closed, i got it to work.
:-)
I made it diffrent, i put the code in the arc and not in the roboticsfactory, which is much easier.
I'm trying allow Gorge to command Whips.
In Whip_Server.lua, function Whip:UpdateOrders(deltaTime), one of the lines I added is:
local success = self:GiveOrder(kTechId.Move, 0, nearestBall:GetOrigin(), nil, true, true)
That is constantly returning a value of 1, and the Whip refused to move.
Any help would be much appreciated!
You have to pass a valid targeId with GiveOrder for the OrderTargetInvalid check. Try
Overall i find it a bit weird that an object is giving itself orders, you might better implement a method executing the move directly.
Code snippet for those interested:
So the whips not longer take damage whilst NOT standing on infestation? Also will they be able to root on non infested ground?
Whips never required infestation to survive. No they cannot root or attack off-infestation, unless somebody wants to change that.