Jump to content
pipyn1970

Trouble with code

Recommended Posts

Hi folks, could someone please help me with this. I had it working last year but now today I tried to create a mission with it & I cant get it to work.

Basically what it does is force an enemy MG gunner to hit a target (a can) when the player walks into a trigger. Ive set the distance the same as last year within the editor but for some reason I cant get it to work. Incase I'm asked, yes I have placed the SQF file in the mission folder. The code has been placed in the trigger that's activated by the player & the enemy have been named MG & MG2.

 

expActiv="0 = [MG, target1,30,100,3] execVM ""shootingInf.sqf""; ;this addeventhandler [""fired"", {(_this select 0) setvehicleammo 1}]; 0 = [MG2, target1,30,100,3,] execVM ""shootingInf.sqf""; ;this addeventhandler [""fired"", {(_this select 0) setvehicleammo 1}];";

 

 

This is the original info:

use: 0 = [soldier, target, min bullets per round, max bullets per round, pause between rounds
example includes shooting from primary weapon
0 = [unit, target,7,10,8] execVM "shootingInf.sqf";

 

Thanks for any help guys.

 

 

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

×