mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
8bf0772558
* add grave digging to body bags * move buryBodyBag action to config, change grave ui icon to headstone * improvements from code review * switch direction check to man instead of bodybag, nominally allowing anything to be buried --------- Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
31 lines
681 B
Plaintext
31 lines
681 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: drofseh
|
|
* Places a body bag inside a grave.
|
|
*
|
|
* Arguments:
|
|
* 0: Medic <OBJECT>
|
|
* 1: Patient <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [cursorObject, player] call ace_medical_treatment_fnc_placeBodyBagInGrave
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_bodybag"];
|
|
TRACE_1("placeBodyBagInGrave",_bodybag);
|
|
|
|
[
|
|
QGVAR(treatmentTimeGrave),
|
|
_this,
|
|
{
|
|
[[_this#1, _this#0], missionNameSpace getVariable [QGVAR(graveClassname), "ACE_Grave"], [0,0,0], missionNameSpace getVariable [QGVAR(graveRotation), 0]] call FUNC(placeInBodyBagOrGrave);
|
|
},
|
|
{},
|
|
LLSTRING(DiggingGrave)
|
|
] call EFUNC(common,progressBar);
|