Jump to content
Sign in to follow this  
Alert23

camcreate + switchCamera and currentWeaponMode

Recommended Posts

hello, 

in this example code it is possible to fire your weapon in a custom camera view although it says

 

currentWeaponMode player

it does only fire single shots regardless of the currentWeaponMode

private _cam = "Land_HandyCam_F" createVehicleLocal [0,0,0];
_cam hideObject true;
_cam attachTo [player, [0,0,10]];
_cam setVectorUp [0,0.99,0.01];
_cam switchCamera "Internal";



findDisplay 46 displayAddEventHandler ["MouseButtonDown", { 
	if (_this select 1 == 0) then { 
	player forceWeaponFire [currentMuzzle player, currentWeaponMode player];
	};
	false 
}];



findDisplay 46 displayAddEventHandler ["KeyDown", { 
	if (_this select 1 in actionKeys "ReloadMagazine") then { 
	reload player;
	};
	false
}];

 

is there a way to make it work for "burst" and "FullAuto" too? 

Share this post


Link to post
Share on other sites

is this even possible? or is there an command like "mouseButtonHoldDown" similar to "keyDown". 

how does fullauto shooting work in  arma maybe that would solve my question. 

any help would be greatly appreciated. 

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  

×