Page 1 of 1

Changing which system the player is in

Posted: Sun Mar 17, 2013 3:16 am
by UK_Eliter
Can anyone help me with changing the system the player is in, either (1) instantaneously (if possible) or - and even if the former if possible I'd like to be able to do this latter thing too - (2) creating a wormhole right in front of the player?

To do (2), do I need to create a (invisible?) entity right in front of the player, and then (via AI or script) make it witchdrive somewhere?

Thanks in advance.

Re: Changing which system the player is in

Posted: Sun Mar 17, 2013 9:19 am
by cim
1: not possible
2: yes, though it doesn't have to be invisible. If you call system.addShips and then ship.exitSystem in the same function call, the player will never actually see it in the start system. If you then call ship.remove then they won't see it in the destination system either.

Re: Changing which system the player is in

Posted: Sun Mar 17, 2013 11:04 am
by Amah
iirc (okti's) longe range scanner cheat works just like this.

Re: Changing which system the player is in

Posted: Sun Mar 17, 2013 2:11 pm
by UK_Eliter
Thanks all - and to Switeck for his helpful private message.

I'll see what I can do!