Jump to content

How do you list the Entities in a Sector?


drew4452862

Recommended Posts

Please check the documentation in Avorion/Documentation.

 

You have the Sector object that have several method :

getEntities

getEntitiesByType

getEntitiesByComponent

getEntitiesByFaction

getEntitiesByComponents

getEntitiesByLocation

 

You can then search those in the actual code and try to understand how each one works.

Link to comment
Share on other sites

Obviously I read the * documentation.  I didn't * invent the example given above.  you * *

 

At least you have some shred of use by pointing me to the game code.

 

    local stations = {sector:getEntitiesByType(EntityType.Station)}
    for _, station in pairs(stations) do 

 

looks like that will make some use of the data coming in.  In the mean time try not to push any beginners away from modding, *.

Link to comment
Share on other sites

drew4452862

Do not use profanity and do not insult other users so openly. If you are asking for help then do it with a proper language. Consider it your first warning.

 

Hey Aki, spend some time helping instead of patrolling the forums for swear words.  Then frustration won't escalate so high.

Link to comment
Share on other sites

Hey Aki, spend some time helping instead of patrolling the forums for swear words.  Then frustration won't escalate so high.

 

Frustration is escalated only by your own behaviour. Shulrak's answer was a valid one. Your second post was overreacted and even if you think it wasn't - there are no excuses for using profanity on forums. Any further discussion and your last comment are obsolete.

 

Locking thread.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...