Artillery Script - Printable Version +- Comrades in Arms Discussion Board (http://forum.ciahome.net) +-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3) +--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8) +--- Thread: Artillery Script (/showthread.php?tid=1656) |
Artillery Script - ColaKilla - 07-04-2009 Hi, I want to try a Artillery Script. I have one but it down work. init.sqs Art = Jack AddAction ["Artillerie anfordern","markieren.sqs"] markieren.sqs (marker) Jack RemoveAction Art hint "Setzen sie den Zielmarker, und bestätigen sie mit abfeuern." ~1 Feuer = Jack AddAction ["Abfeuern","ziel.sqs"] exit Ziel.sqs (target) "_user_defined #0/0" setmarkercolor "colorblue" "_user_defined #0/0" setmarkersize [0.8,0.8] "_user_defined #0/0" setmarkertype "destroy" ~1 ["_user_defined #0/1", 70,90,50] exec "schuss.sqs" schuss.sqs (fire) Jack RemoveAction Feuer _Centre = _this select 0 _areaX = _this select 1 _areaY = _this select 2 _shots= _this select 3 _CentrePos = GetMarkerPos _Centre _xco = _CentrePos select 0 _yco = _CentrePos select 1 _zco = _CentrePos select 2 _areaX2 = _areaX * 2 _areaY2 = _areaY * 2 _Smoke = "SmokeShellRed" camCreate [_xco,_yco,_zco+100] ~5 #start _bomb1 = "Heat125" camCreate [_xco + Random(_areaX2) - _areaX,_yco + Random(_areaY2) - _areaY,_zco + 30] ~0.2 _shots = _shots -1 ? _shots >= 1: goto "Start" DeleteVehicle _Smoke exit i press on the Call artillery button and if i want to press on map to mark the target nothing happen. need help Re: Artillery Script - Pulverizer - 07-04-2009 You need to put a marker on map, not just click on it. Re: Artillery Script - ColaKilla - 07-04-2009 hmm what name need this marker ? sorry i am new in scripting Re: Artillery Script - Pulverizer - 07-05-2009 No, you double click on map in-game to create marker "_user_defined #0/0" You can only create it once because of the increasing number in the marker name. Or maybe it uses 0 again if you delete the first one. |