mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Advanced Throwing - Add object variable to disable pick up of attached throwables (#8031)
* Advanced Throwing - Add object variable to disable pick up Use: `OBJECT setVariable ["ace_advanced_throwing_disablePickUp", true]` * Documentation - Add Advanced Throwing Framework * Update addons/advanced_throwing/functions/fnc_renderPickUpInteraction.sqf * Update advanced-throwing-framework.md Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
parent
13bce729ee
commit
5a36d1a771
@ -31,7 +31,7 @@
|
||||
_nearThrowables append (ACE_player nearObjects ["ACE_Chemlight_IR_Dummy", PICK_UP_DISTANCE]);
|
||||
|
||||
{
|
||||
if (!(_x in _throwablesHelped) &&
|
||||
if (!(_x in _throwablesHelped) && {!((attachedTo _x) getVariable [QGVAR(disablePickUp), false])} &&
|
||||
{!(_x isKindOf "SmokeShellArty")} && {!(_x isKindOf "G_40mm_Smoke")} && // All smokes inherit from "GrenadeHand" >> "SmokeShell"
|
||||
{GVAR(enablePickUpAttached) || {!GVAR(enablePickUpAttached) && {isNull (attachedTo _x)}}}
|
||||
) then {
|
||||
|
20
docs/wiki/framework/advanced-throwing-framework.md
Normal file
20
docs/wiki/framework/advanced-throwing-framework.md
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
layout: wiki
|
||||
title: Advanced Throwing Framework
|
||||
description: Explains how to interact with the Advanced Throwing API.
|
||||
group: framework
|
||||
parent: wiki
|
||||
mod: ace
|
||||
version:
|
||||
major: 3
|
||||
minor: 7
|
||||
patch: 0
|
||||
---
|
||||
|
||||
## 1. Disabling pick up of ammo attached to an object
|
||||
|
||||
Pick-up interaction can be disabled for ammo (e.g. chemlights) attached to an object.
|
||||
|
||||
```js
|
||||
OBJECT setVariable ["ace_advanced_throwing_disablePickUp", true, true];
|
||||
```
|
Loading…
Reference in New Issue
Block a user