BIS fnc carAlarm: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ")
m (Text replacement - "<code> *(\^+\]) +\[\[call\]\] +\[\[(BIS_fnc_[a-zA-Z0-9_]+)\]\];? *<\/code>" to "<sqf>$1 call $2;</sqf>")
Line 18: Line 18:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>["init", myCar] [[call]] [[BIS_fnc_carAlarm]];</code>
|x1= <sqf>["init", myCar] call BIS_fnc_carAlarm;</sqf>


|seealso= [[Arma_3:_Event_Handlers|Arma 3 Event Handlers]]
|seealso= [[Arma_3:_Event_Handlers|Arma 3 Event Handlers]]
}}
}}

Revision as of 19:03, 5 May 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