Bohemia Interactive Forums  

Go Back   Bohemia Interactive Forums > BI MILITARY GAMES FORUMS > ARMA 2 EDITING > ArmA 2 & OA - MISSION EDITING & SCRIPTING

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.

Reply
 
Thread Tools Display Modes
Old 03-13-2010, 08:57 AM   #1
Wiggum
Gunnery Sergeant
 
Wiggum's Avatar
 
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 ?
Wiggum is offline   Reply With Quote
Old 03-24-2010, 08:47 PM   #2
sxp2high
Corporal
 
sxp2high's Avatar
 
Join Date: Jul 2009
Location: Somewhere between the Editor and Notepad++
Posts: 64
I'm searching for this too...
sxp2high is offline   Reply With Quote
Old 03-26-2010, 05:08 PM   #3
Wiggum
Gunnery Sergeant
 
Wiggum's Avatar
 
Join Date: Jun 2009
Location: Germany
Posts: 568
Exclamation

Still no answer, maybe this is not possible at all ?
Wiggum is offline   Reply With Quote
Old 03-26-2010, 05:19 PM   #4
Sickboy
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.
Sickboy is offline   Reply With Quote
Old 03-26-2010, 05:37 PM   #5
Wiggum
Gunnery Sergeant
 
Wiggum's Avatar
 
Join Date: Jun 2009
Location: Germany
Posts: 568
Question

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...
Wiggum is offline   Reply With Quote
Reply
Go Back   Bohemia Interactive Forums > BI MILITARY GAMES FORUMS > ARMA 2 EDITING > ArmA 2 & OA - MISSION EDITING & SCRIPTING  Reload this Page  How to check if player wear gas mask (ACE2) ?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:52 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.