Jump to content
Sign in to follow this  
snkman

Headshot Script and ArmA body part's.

Recommended Posts

Hey Guy's,

well i found a really funny Script for OFP but it look's like it doesn't work in ArmA.

init of the Soldiers:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this AddEventHandler [ "dammaged", { _this exec "hit.sqs" } ];

hit.sqs:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_treffer = _This Select 1

? _treffer == "hlava" : goto "hs"

exit

#hs

PlaySound "hs"

hint " H E A D S H O T"

exit

Now "hlava" is the bodypart "Head" and so far i found this: ArmA: Selection Translations

There you can see "hlava" is still used in ArmA or am i totally wrong...?

Share this post


Link to post
Share on other sites

im not sure but you can always 'debbug' with hintC format command.

_treffer = _This Select 1

hintC format ["Target has been hit in : %1", _treffer];

Probably youre looking for 'head_hit'.

So we have 4 bodyparts ?

-head_hit

-legs

-hands

-body

?

Share this post


Link to post
Share on other sites
im not sure but you can always 'debbug' with hintC format command.

_treffer = _This Select 1

hintC format ["Target has been hit in : %1", _treffer];

Probably youre looking for 'head_hit'.

Yes "head_hit" works. wink_o.gif

THX pal.

Share this post


Link to post
Share on other sites

no problem, btw it was useful not only for U or me but it was useful for whole community wink_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×