Page 1 of 1

RemoveLocation

PostPosted: Sun Jan 14, 2018 11:12 pm
by freecan
What does removeLocation do?

Code: Select all
{
  id: st-sailing
  tripEvents:
  [
    {
      removeLocation:
      {
        ref: loc-ship,
        radius: 999
      }
    }
  ]
}


the above code doesn't seem to remove the ship after traveling a leg

Ideally I want to actually get rid of the ship particle and the location from the map, how can I do that?

Re: RemoveLocation

PostPosted: Mon Jan 15, 2018 3:48 pm
by riadd
removeLocation is a special properties of sprawls entities. It is not a command to be used inside of the event system. There's also an overview of all commands here: https://github.com/Maschinen-Mensch/curiousexpedition

Instead of removeLocation you want to use replaceLocations