The problem is that (sysCreateStation) expects an integer, not a string UNID. If you called it manually it would be like:
Code: Select all
(sysCreateStation &stCharonPirateOutpost; somevector)
In this case, when the xml is parsed, the ENTITY gets replaced with the UNID, which is a 0x hexadecimal number, not a string.
So the problem is to get a number. Luckily we have (int), so just wrap the string in that
Code: Select all
(sysCreateStation (int (item (item hostiles1 0) 0)) (objGetPos theMarker))
That should work (in theory). Sorry for the long explanation, but I thought it might clear it up...
.]