BIS fnc carAlarm: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision imported)
m (Text replacement - " |s1=[" to " |s1= [")
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.76


| arma3 |= Game name
|gr1= Object Manipulation


|1.00|= Game version
|descr= Play car alarm effect.
____________________________________________________________________________________________


| <pre>/*
|s1= [mode, car] call [[BIS_fnc_carAlarm]]


Description:
|p1= mode: [[String]] - can be one of:
Play car alarm effect.
* "init": add "Hit" and "GetIn" event handler on the car
* "play": play the alarm effect


Parameter(s):
|p2= car: [[Object]] - vehicle protected by alarm
0: STRING - mode, can be:
"init" - add "hit" and "GetIn" event handler on the car
"play" - play the alarm effect
1: OBJECT - car


Examples:
|r1= [[Nothing]]
this call bis_fnc_carAlarm;
["play",vehicle player] spawn bis_fnc_carAlarm;


Returns:
|x1= <sqf>["init", myCar] call BIS_fnc_carAlarm;</sqf>
NOTHING
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_carAlarm]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[Arma_3:_Event_Handlers|Arma 3 Event Handlers]]
}}
}}
<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: Misc|{{uc:carAlarm}}]]
[[Category:Functions|{{uc:carAlarm}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:carAlarm}}]]

Latest revision as of 23:11, 12 July 2022

Hover & click on the images for description

Description

Description:
Play car alarm effect.
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
[mode, car] call BIS_fnc_carAlarm
Parameters:
mode: String - can be one of:
  • "init": add "Hit" and "GetIn" event handler on the car
  • "play": play the alarm effect
car: Object - vehicle protected by alarm
Return Value:
Nothing

Examples

Example 1:
["init", myCar] call BIS_fnc_carAlarm;

Additional Information

See also:
Arma 3 Event Handlers

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