BIS fnc carAlarm: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
m (template:command argument fix) |
||
Line 15: | Line 15: | ||
|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 |PARAMETER1= | ||
|p2= car: [[Object]] - vehicle protected by alarm | |p2= car: [[Object]] - vehicle protected by alarm | ||
Line 22: | Line 22: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>["init", myCar] [[call]] [[BIS_fnc_carAlarm]];</code> |= | |x1= <code>["init", myCar] [[call]] [[BIS_fnc_carAlarm]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 14:28, 7 April 2019
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