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

New program for writers

We turn from quantity to quality and tell you how we will supplement the Allods Team program with rewards in rubles.

More

The new Updater

Let us to introduce the new addon updater software and to share the details

Read more

Alloder 2.0

We have started the process of project evolve, and this relates not only, and not even primarily of the site's view

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
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.

 Share

×
×
  • Create New...

Important Information

By using our site you agree to the Terms of Use