Jump to content
Alloder.pro  about Allods with love 😱
Search In
  • More options...
Find results that contain...
Find results in...

Servers monitoring and the Addons Editor

We present you two legends. All dreams come true.

Servers monitoring The Addons Editor

Digest April

We talk about what was done and updated in the past month. We help keep abreast of events.

Read more

Game tooltips

Tooltips provide a way for 3rd party fansites and extensions to display detailed information on mouseover.

Read more

How o decided, if transport in the astral belong to league or empire


Guest Carnifex
 Share

Recommended Posts

Guest Carnifex

Is there a good fast method to decide, if a ship in the astral is an empire or league ship?

At the moment I only know 2 slow methods, which also will only work for the people sitting at the visor: 1. to look what fractions the persons on the ship belongs 2. to check the order-number of the treasure-room (device, only viewable with activ visor-connect).

Link to comment
Share on other sites

Guest Suralc

Don`t know but can`t you get the unitID of the ship and check it via unit.GetFaction( unitId ).:

Untestet, just an idea:

function transportspawned(param)

printfaction(param.unitid)

end

function printfaction(unitID)

local faction = unit.GetFaction( unitId )

LogInfo( "Ship is from the ", debugCommon.FromWString( faction.name ), "!!!" ))

end

Link to comment
Share on other sites

Even if you can't get ship's faction you may be able to get ship owner's faction. (may be = may be it will work, not guaranteed as objects may be loaded and assigned an ID only before showing up in range of sight)

Link to comment
Share on other sites

Guest Carnifex

And how to get the ship owner? The only way to see people on other astral ships is to log the ship into the visor and the I can pick someone (You are not be able to know, who is the owner) and check his fraction, but this is very slow.

Link to comment
Share on other sites

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

 Share

×
×
  • Create New...

Important Information

By using our site you agree to the Terms of Use