Lua Events/OnMechanicActionDone

From PZwiki



Event

OnMechanicActionDone

Description

Triggered when a player finished a mechanic action.

Parameters

  • IsoGameCharacter The character who performed the mechanic action.
  • Boolean Whether the machanic action was successful or not.
  • Integer The identifier of the vehicle on which the mechanic action is being performed.
  • String The vehicle part identifier that is being installed or removed.
  • Long The item identifier used to perform the mechanic action.
  • Boolean Whether the vehicle part is being installed or removed.

Examples

local function OnMechanicActionDone(character, success, vehicleId, partId, itemId, installing)
	-- Your code here
end

Events.OnMechanicActionDone.Add(OnMechanicActionDone)

See also

No related event.