Executing orders inside external event script? |

I have another Idea to close warp points after each turn: I assigned the Stellar Object (Warp Point) with ability type Warp Point-Close.
Inside the External_Event_Script I'm trying to give an order to the warp point (a list of warp points if any exist) and execute close warp point.
How does one call an orders function? The script manual is very vague and gives no syntax on how to call the function. I've looked in example scripts but haven't seen anything to relate to.
Any help?

Re: Executing orders inside external event script?
You'd use Sys_Give_Space_Object_Order_Any to give a space object an order (ORDER_CLOSE_WP), but I doubt anticipate you can give orders to warp points. Worth a shot.
It'd be more worthwhile to bug MM about activating the stellar manipulation script functions. 
-----
Re: Executing orders inside external event script?
The events script already contains a "close warp point" event. Not sure if it is really working at this point, but if all you want to do is close a warp point you could just copy that event and modify it to your liking.

Re: Executing orders inside external event script?
He is aware of that, but that script function is not currently implemented, so he is looking for a workaround.
-----




Re: Executing orders inside external event script?
I don't think a non-ship object would have the ability to execute any sort of order.
SpaceEmpires.net | Space Empires Wiki