Jump to content

Sign in to follow this  
cervantes

how use hitpart event handler in your config.

Recommended Posts

hi here i have not find on this forums how use hitpart event handler with config cpp.

after one long search for working a script dammage by selection on static weapons i have encoutering the followed troubls.

 

the arma3 engine do not implementing a basic hitpoints config for vehicle in static weapons config.

and the config cpp with hitpoints defined not working for that reason.

for this tutorial i use one search light static weapon.

the config

  Reveal hidden contents

 

the model .cfg

 

  Reveal hidden contents

 

i fix this troubls with hitpart event handler in my config.

now we can fix the attention on the hitpart event handler because that working perfectly for detecting a selection hit 😉

in script we need define if a selection hit is Hitglass.

the selection is returned same to one array element for that we need return the selection array and the element in this array.

 

the script

  Reveal hidden contents

 

if you use (_sel  == "HitGlass") that return one error because the element is not corectly identified but with (_sel select 0 == "HitGlass") you identify coretly the selection hited by projectiles 😉

 

friendly Cervantes.

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  

×