The normal WGL BMP-1 doesn't have the vehicle smoke launcher (WGL_ArmorSmokeLauncher), but the BMP-1P, BMP-1K and the BRM-1K have. The easiest way to have one of those vehicles fire a round of smoke is to use the same script that's used when a player uses the "Launch smoke" user action that these vehicles have:Originally Posted by (Domin-81 @ Jan. 05 2008,12:02)
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[my_bmp] exec "\wglevents\vehiclefx\armorsmoke_f ire.sqs"[/QUOTE]
If you wanted, you could equip any BMP1 with the proper smoke launcher weapon and magazines and have it fire off a round of smoke. Use this script:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">;
; launch_smoke.sqs
;
; Usage: [some_vehicle] exec "launch_smoke.sqs"
;
? count _this < 1: if(local player)then{player globalChat "launch_smoke.sqs: wrong parameter format used when calling the script. Exiting.";}; exit
_vehicle = _this select 0
? "WGL_ArmorSmokeLauncherDummy" in (magazines _vehicle):goto "skipmags"
_vehicle addMagazine "WGL_ArmorSmokeLauncherDummy"
#skipmags
? "WGL_ArmorSmokeLauncher" in (weapons _vehicle):goto "skipwep"
_vehicle addWeapon "WGL_ArmorSmokeLauncher"
#skipwep
; Fire the smoke launcher
[_vehicle] exec "\wglevents\vehiclefx\armorsmoke_f ire.sqs"
exit[/QUOTE]
In general, the vehicle needs the following things to be able to fire smoke:
<ul>[*]At least one magazine "WGL_ArmorSmokeLauncher"[*] The weapon "WGL_ArmorSmokeLauncher"[/list]Then, it's a matter of doing
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">my_vehicle fire "WGL_ArmorSmokeLauncher"[/QUOTE]
HOME
Reply With Quote
