BIS fnc carAlarm: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Page filling)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Play car alarm effect. |= Description
 
____________________________________________________________________________________________
Description:
Play car alarm effect.


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


Examples:
|p1= mode: [[String]] - can be one of:
this call bis_fnc_carAlarm;
* "init": add "Hit" and "GetIn" event handler on the car
["play",vehicle player] spawn bis_fnc_carAlarm;
* "play": play the alarm effect |= Parameter 1


Returns:
|p2= car: [[Object]] - vehicle protected by alarm
NOTHING
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_carAlarm]]; --> |= Syntax
|x1= <code>["init", myCar] [[call]] [[BIS_fnc_carAlarm]];</code> |= Example 1
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=
| [[Arma_3:_Event_Handlers|Arma 3 Event Handlers]] |= See also
____________________________________________________________________________________________
 
| |= See also
 
}}
}}



Revision as of 23:35, 25 April 2018


Hover & click on the images for description

Description

Description:
Play car alarm effect.
Execution:
call
Groups:
Uncategorised

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

Notes

Bottom Section