mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
af3c95a5a6
* Disable screams for individual units * Update addons/fire/XEH_postInit.sqf * Changed wording Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> * isGlobal instead of true Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> --------- Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
1.2 KiB
1.2 KiB
layout | title | description | group | order | parent | mod | version | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wiki | Fire Framework | Explains how to ignite thing using CBA events. | framework | 5 | wiki | ace |
|
1. Events
Use CBA_fnc_serverEvent
to use the following features. Events are defined only on the server in the system.
1.1 Adding a new fire source
ace_fire_addFireSource
Arguments | Type | Optional (default value) | |
---|---|---|---|
0 | Source of flame | Object/Position ASL | Required |
1 | Radius of fire | Number | Required |
2 | Intensity of fire (1, 10] | Number | Required |
3 | Fire source ID | Any | Required |
4 | Condition to stop fire | Code | Optional (default: { true } ) |
5 | Arguments to pass to condition | Any | Optional (default: [] ) |
1.2 Removing fire source
ace_fire_removeFireSource
Arguments | Type | Optional (default value) | |
---|---|---|---|
0 | Fire source ID | Any | Required |
2. Variables
Screams can be disabled for an individual unit by setting the ace_fire_enableScreams
variable on the unit, which can be synced across machines.
_unit setVariable ["ace_fire_enableScreams", false, _isGlobal];