BIS fnc sceneIntruderDetector: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game1= arma2 \|version1= 1\.([0-9]{2}) " to "|game1= arma2 |version1= 1.$1 |game2= arma2oa |version3= 1.50 |game3= tkoh |version3= 1.00 |game4= arma3 |version4= 0.50 ")
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )T([a-z])" to "$1t$3")
 
(7 intermediate revisions by the same user not shown)
Line 5: Line 5:


|game2= arma2oa
|game2= arma2oa
|version3= 1.50
|version2= 1.50


|game3= tkoh
|game3= tkoh
Line 16: Line 16:


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


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


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


|p2= triggerSize: [[Array]] - (Optional, default [60,60]) Trigger size as array in format:<br>
|p2= triggerSize: [[Array]] - (Optional, default [60,60]) trigger size as array in format:<br>
0: Number - Size A<br>
0: Number - Size A<br>
1: Number - Size B
1: Number - Size B
Line 28: Line 28:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[[1337,1337,0],[42,42]] [[call]] [[BIS_fnc_sceneCreateSceneTrigger]];</code>
|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]]
|seealso= [[BIS_fnc_sceneCreateSoundEntities]] [[BIS_fnc_sceneRotate]] [[BIS_fnc_sceneSetBehaviour]] [[BIS_fnc_sceneGetObjects]]
}}
}}
[[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 13: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