mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fortify - Add onDeployStop event for cancelling before confirming (#9854)
* onDeployStop event
* Updated wiki with new event
* Fixed params
* Revert "onDeployStop event"
This reverts commit c3dae82915
.
* Uses deployCanceled
* Re-added fortify stop event
* Update fnc_deployObject.sqf
---------
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
parent
80417b114d
commit
31217ae5d0
@ -70,6 +70,7 @@ private _mouseClickID = [_player, "DefaultAction", {GVAR(isPlacing) == PLACE_WAI
|
||||
[_unit, _object] call FUNC(deployConfirm);
|
||||
} else {
|
||||
TRACE_1("deleting object",_object);
|
||||
[QGVAR(onDeployStop), [_unit, _object, _cost]] call CBA_fnc_localEvent;
|
||||
deleteVehicle _object;
|
||||
};
|
||||
};
|
||||
|
@ -119,5 +119,6 @@ Event Name | Passed Parameter(s) | Locality | Description
|
||||
`acex_fortify_objectPlaced` | [player, side, objectPlaced] | Global | Fortify object placed
|
||||
`acex_fortify_objectDeleted` | [player, side, objectDeleted] | Global | Fortify object deleted
|
||||
`acex_fortify_onDeployStart` | [player, object, cost] | Local | Player starts placing object
|
||||
`ace_fortify_onDeployStop` | [player, object, cost] | Local | Player stops placing object. Raised only if stopped before trying to place (= before progress bar appears). If it's during progress bar, only `ace_fortify_deployCanceled` is raised.
|
||||
`ace_fortify_deployFinished` | [[player, side, configName, posASL, vectorDir, vectorUp, cost], elapsedTime, totalTime, errorCode] | Local | Player successfully finishes building object
|
||||
`ace_fortify_deployCanceled` | [[player, side, configName, posASL, vectorDir, vectorUp, cost], elapsedTime, totalTime, errorCode] | Local | Player cancels building object
|
||||
|
Loading…
Reference in New Issue
Block a user