![]() |
|
|
|||||||
| ArmA 2 & OA - MISSION EDITING & SCRIPTING For discussing the technical aspects of creating custom ArmA 2 & the standalone expansion Operation Arrowhead missions as well as scripting. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Gunnery Sergeant
Join Date: Jun 2009
Location: Germany
Posts: 568
|
How to check if player wear gas mask (ACE2) ?
Hi,
i have created a trigger with the size 100x100. If the player enters this area and dont wears a gas mask (not only has it in his inventory) he should die in 10 sec. If he put the gask mask on before the countdown is finished he should not die. So, if the player is in this area and pull of the gas mask he will die too in 10 sec. It would be cool the have a hint that counts down the 10 sec ! Can you help ? |
|
|
|
|
|
#2 |
|
Corporal
Join Date: Jul 2009
Location: Somewhere between the Editor and Notepad++
Posts: 64
|
I'm searching for this too...
|
|
|
|
|
|
#3 |
|
Gunnery Sergeant
Join Date: Jun 2009
Location: Germany
Posts: 568
|
Still no answer, maybe this is not possible at all ?
|
|
|
|
|
|
#4 |
|
Second Lieutenant
Join Date: May 2005
Location: Netherlands
Posts: 4,846
|
ATM there's only some low level functions that give access to if the player is protected by eye or ear gear.
Please see coding notes of: http://ace.dev-heaven.net/wagn/Goggles_and_Teargas If this is insufficient, please create a suggestion ticket, so we could possibly implement it: http://ace.dev-heaven.net/wagn/Support
__________________
Good night. |
|
|
|
|
|
#5 |
|
Gunnery Sergeant
Join Date: Jun 2009
Location: Germany
Posts: 568
|
Thanks Sickboy !
So "_r = [player] call ace_eyeprotection;" returns a 0 if the player dont wears the gas mask if i understand it correct ? So basicly if the player is in the trigger area and _r = 0 then i could let him die... |
|
|
|
![]() |
![]() |
![]() | How to check if player wear gas mask (ACE2) ? |
| Thread Tools | |
| Display Modes | |
|
|