I need this for my next map. I've tried
"COMMANDNODE" CurrentCoords CreateUnit
but it doesn't do anything.
I want my CRPLCore to be the point you build your infrastructure out from.
The only way is to force-land the command node over your CRPL core. Then somehow prevent later relocation if that is what you require. I don't specifically recall, but I *think* there may be a way to prevent a CN from taking off.
AFAIK you can't create a CN out of thin air, it can only fall from the sky and it can only be placed by the player. If you need a CN to be landed in a particular area you can designate the position and pass 1 frame so players can't change the landing location, and you can use SetUnitSelectableOverride to make it so players can't move the CN.
OK, thanks. Expect to see my map soon ;)
EDIT: Also is there a way to make the CN invisible?
There is not. Best you can probably do is hide it with another image laid on top using a CRPLCore, with a specific z-position so it goes over other textures but under packets and connections. A z-position of 2 should do the trick:
Self "main" 2 SetImagePositionZ
Alright. My map's gonna have a big ship on it (that you build from) so hiding the CN shouldn't be too hard.