Execute_UnassignCareerSeat
Description
Unassigns a character from a career seat. Resolves the seat to its root object via ObjectGrouping and removes the current occupant from that seat. The character is resolved from the script context as Self, and the seat as Target, regardless of the BaseObject parameter. If the seat is a child of an ObjectGrouping component, the root entity is used. For School career seats, transfers all seat inventory objects to the character inventory before unassigning. If the transfer fails, the seat remains assigned. Inventory capacity failures send a failure toast; S2 is sent only after unassignment succeeds. On success, sends the S_UpdateCareerSeatInfo packet.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Not used directly; character is Self and seat is Target via context. |
| S1 | EB1CareerType to use (e.g., Business, School); defaults to Business if omitted. |
| S2 | Optional toast message id to send only when unassignment succeeds. |
Notes
School seat inventory transfer is all-or-nothing. Capacity, invalid inventory, or put-in failures block unassignment and keep objects in the seat inventory.
Examples
| Description | BaseObject | Command | S1 |
|---|---|---|---|
| Unassign the character from a Business seat | Self | UnassignCareerSeat | |
| Unassign the character from a School career seat | Self | UnassignCareerSeat | School |