Topic: Unload Order is not functional

  • Author
    Posts
  • #27517
    Avatar photoTaroEld
    Participant

    unload_order.nut, called during caravan faction actions, doesn’t actually cause the receiving settlement to gain any new items. The problem is that the settlement isn’t found as an entity at the target position. This is fixed with a different function call.
    Currently:
    local entities = this.World.getAllEntitiesAtPos(_entity.getPos(), 1.0); // this only finds parties, not locations, the following condition can’t be true
    Fixed:
    local entities = this.World.getAllEntitiesAndOneLocationAtPos(_entity.getPos(), 1.0); //this also finds the settlement

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.