Guest Carnifex Posted April 16, 2011 Share Posted April 16, 2011 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). Quote Link to comment Share on other sites More sharing options...
Guest Suralc Posted April 18, 2011 Share Posted April 18, 2011 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 Quote Link to comment Share on other sites More sharing options...
Setras Posted April 18, 2011 Share Posted April 18, 2011 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) Quote Link to comment Share on other sites More sharing options...
Guest Carnifex Posted April 22, 2011 Share Posted April 22, 2011 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. Quote Link to comment Share on other sites More sharing options...
Guest Carnifex Posted April 22, 2011 Share Posted April 22, 2011 A ship is a transport and not a unit, so this will not work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts