Dismantled Options

As with the assembling you have numerous options for actions that can be taken once an object has finished dismantling.

On Dismantle Dismantle

This is a list of Artificer objects that you want to dismantle during or after this object has been dismantled. You can add any number of Artificer objects to dismantle and for each one you can set the level below which that object will start its own dismantling animation. Use the + and - buttons to add and remove objects from the list.

Dismantle Objects Inspector.

Level

The progress of the current Artificer dismantling animation at which the new object will start dismanting. A level value of 1 is the current object fully built and a value of 0 is when the the current object has been fully dismantled.

Dismantle

The artificer object that will have its dismantling animation started when the level value is reached.

Parts to Call Dismantle Event

Artificer as numerous events that you can register to so your scripts can be told when certain elements are dismantled. If you make use of the Dismantle Event system then you can say which elements you want the event to be called on. In this text area you can type the ids of any elements you want the even to fire on, you can also set ranges or exclude ids or ranges of ids.

For example if you have '1 2 4-10' then the place event will be invoked when elements with ids or 1 2 4 5 6 7 8 9 and 10 are dismantled. You can use the ! character to exclude elements so if we have '1 2 4-10 !7-9' then the event will only be called for 1 2 4 5 6 and 10.

You can add the objects that will get the events by adding them to the Dismantle Events list and selecting the class and method to get the event like you would do for UI buttons for example. The event is looking for a function(Artificer, int) function type.

Artificer also has a DismantledEvent you can register to directly if you don't want to use this system, Check the Events doc for more info on this.

Fully Dismantled Event

As well as dismantling events Artificer has a Fully Dismantled event you can use if you need to be told when Artificer has completed the dismantle animation. Again you can add your target object and select the method here. The event is looking for a function(Artificer) function type.

Last updated