BIS fnc sceneIntruderDetector: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )T([a-z])" to "$1t$3")
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma2
____________________________________________________________________________________________
|version1= 1.00


| arma2 |= Game name
|game2= arma2oa
|version2= 1.50


|1.00|= Game version
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| <pre>
|game4= arma3
/**************************************************************************************************************************
|version4= 0.50
Version: 1.0
Name: Intruder detector during scene
DESCRIPTION: Checks if there are intruders during scene. All intruders during scene will be disabled if they
will get into the detector trigger. Position of trigger is default on player, and default radius is [60,60]
Checking is deactivated by passing BIS_sceneIntruderDetectorLogic setVariable ["_detectInProgress", false]
PARAMETERS: _centerOfScene: POSITION - trigger position
_Radius: ARRAY: [_xRadius, _yRadius] - size of trigger
RETURNED VALUE: nothing
****************************************************************************************************************************/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
|gr1= Scenes
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_sceneIntruderDetector]]; --> |SYNTAX=
|descr= Checks if there are intruders during scene. All intruders during scene will be disabled if they
  will get into the detector trigger. Checking is deactivated by passing <sqf>BIS_sceneIntruderDetectorLogic setVariable ["_detectInProgress", false];</sqf>


|p1= |PARAMETER1=
|s1= [sceneCenter, triggerSize] call [[BIS_fnc_sceneIntruderDetector]]


| |RETURNVALUE=
|p1= sceneCenter: [[Array]] - (Optional, default [[position]] [[player]]) center position of scene
____________________________________________________________________________________________


|x1= <code></code> |=
|p2= triggerSize: [[Array]] - (Optional, default [60,60]) trigger size as array in format:<br>
____________________________________________________________________________________________
0: Number - Size A<br>
1: Number - Size B


| |SEEALSO=
|r1= [[Nothing]]


|x1= <sqf>[[1337,1337,0],[42,42]] call BIS_fnc_sceneCreateSceneTrigger;</sqf>
|seealso= [[BIS_fnc_sceneCreateSoundEntities]] [[BIS_fnc_sceneRotate]] [[BIS_fnc_sceneSetBehaviour]] [[BIS_fnc_sceneGetObjects]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Scenes|{{uc:sceneIntruderDetector}}]]
[[Category:Functions|{{uc:sceneIntruderDetector}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:sceneIntruderDetector}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:sceneIntruderDetector}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:sceneIntruderDetector}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:sceneIntruderDetector}}]]

Latest revision as of 12:32, 8 November 2023

Hover & click on the images for description

Description

Description:
Checks if there are intruders during scene. All intruders during scene will be disabled if they will get into the detector trigger. Checking is deactivated by passing
BIS_sceneIntruderDetectorLogic setVariable ["_detectInProgress", false];
Execution:
call
Groups:
Scenes

Syntax

Syntax:
[sceneCenter, triggerSize] call BIS_fnc_sceneIntruderDetector
Parameters:
sceneCenter: Array - (Optional, default position player) center position of scene
triggerSize: Array - (Optional, default [60,60]) trigger size as array in format:
0: Number - Size A
1: Number - Size B
Return Value:
Nothing

Examples

Example 1:
[[1337,1337,0],[42,42]] call BIS_fnc_sceneCreateSceneTrigger;

Additional Information

See also:
BIS_fnc_sceneCreateSoundEntities BIS_fnc_sceneRotate BIS_fnc_sceneSetBehaviour BIS_fnc_sceneGetObjects

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note