Jump to content
Sign in to follow this  
rgreenpc

Jam marker rounds? do they work?

Recommended Posts

I see them in the config - and have added them to a mission - but alas I dont see any marking going on.....

Are they for AI?

Share this post


Link to post
Share on other sites

For the JAM marker rounds to work (and the AI vision blocking feature of normal smoke grenades), the unit that fires them must be fitted with a special fired event handler that detects them and tracks them. There are units out there that have that functionality already (the JAM units themselves and the latest BAS Deltas/Rangers and possibly others).

To make the marker rounds work on any other unit, add this to its init line in the editor:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this addEventHandler ["fired",{if ( (_this select 1 in [{Throw},{JAM_AT4Launcher},{JAM_RPG7Launcher},{JAM_M72LAWLauncher}]) or (_this select 4 in [{JAM_MarkerGrenadeammo}]) ) then {_this exec {\JAM_Magazines\FX\firedEH.sqs}}}]

(That should read as one line only)

Good luck!

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  

×