BIS fnc carAlarm: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.76 | |1.76 | ||
|gr1 = Object Manipulation | |gr1 = Object Manipulation | ||
| Play car alarm effect. | | Play car alarm effect. | ||
| [mode, car] call [[BIS_fnc_carAlarm]] | | [mode, car] call [[BIS_fnc_carAlarm]] | ||
|p1= mode: [[String]] - can be one of: | |p1= mode: [[String]] - can be one of: | ||
* "init": add "Hit" and "GetIn" event handler on the car | * "init": add "Hit" and "GetIn" event handler on the car | ||
* "play": play the alarm effect | * "play": play the alarm effect | ||
|p2= car: [[Object]] - vehicle protected by alarm | |p2= car: [[Object]] - vehicle protected by alarm | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>["init", myCar] [[call]] [[BIS_fnc_carAlarm]];</code> | |x1= <code>["init", myCar] [[call]] [[BIS_fnc_carAlarm]];</code> | ||
| [[Arma_3:_Event_Handlers|Arma 3 Event Handlers]] | | [[Arma_3:_Event_Handlers|Arma 3 Event Handlers]] | ||
}} | }} | ||
Revision as of 22:36, 17 January 2021
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