Jump to content
Sign in to follow this  

Question: Right way to let a ship jump to another sector

Recommended Posts

Hi Guys,


i build a mod to let ships in my sector jump in another sector if the health drops under a certain value. I have multiple ships following me, but i can't take care of all of them in a fight ;)

I put an onDamaged Callback on the Entity, and the script is working, but I'm not sure, if this is the best way to move a ship:

            ShipAI(Entity().id):setJump(xNew, yNew)
            Galaxy():transferEntity(Entity(), xNew, yNew, 0)


Could you please confirm / optimize?


Thanks in advance!

Share this post

Link to post
Share on other sites
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...