Changing which system the player is in

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1248
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Changing which system the player is in

Post 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.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Changing which system the player is in

Post 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.
User avatar
Amah
---- E L I T E ----
---- E L I T E ----
Posts: 486
Joined: Tue Aug 28, 2012 8:05 pm
Location: aboard the Laenina Crowne - Yasen-N class space freighter
Contact:

Re: Changing which system the player is in

Post by Amah »

iirc (okti's) longe range scanner cheat works just like this.
Amah
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1248
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Changing which system the player is in

Post by UK_Eliter »

Thanks all - and to Switeck for his helpful private message.

I'll see what I can do!
Post Reply