jreaper 0 Posted November 28, 2001 ia makin a beach assault level but i would like there to be explosions etc. on the beach around the player. how can acheive this??? Share this post Link to post Share on other sites
Sitting Duck 0 Posted November 29, 2001 Can do it like you would personel mines. Lay an empty M2 machinegun on the ground. Give it a name e.g GUN1 In it's initilization box, make it so it's a metre under ground. Now you can make a script or just make loadsa triggers to set off of your M2 Guns. Do a trigger like this: If west = present GUN1 setdammage 4 --------------------------- That should help Share this post Link to post Share on other sites
Space Cadet 1 Posted November 29, 2001 Blowing up guns is an older way of getting explosions (although it does work) I normally use the CamCreate command:- "Heat120" CamCreate [(getpos aP) select 0 + Random 10,(getpos aP) select 1 + Random 10, (getpos aP) select 2 + 30] this will create a heat shell 30 meters above your position and a random distance away from you (you can even see it fall to the ground) (Edited by Space Cadet at 11:48 am on Nov. 29, 2001) Share this post Link to post Share on other sites
HENLEY 0 Posted December 5, 2001 Here is an easy way of doing it. just figured out how to make easy anti-personell mines that requires no script whatsoever. All you need is: An empty Mounted MG (don't worry, it wont be visible). A trigger. And (optional) a mine. How to: Create the MG. Name it MG1 (or whatever u prefer...but i'll use MG1). Place this line in it's init field: this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) -2] . That will place it under ground, and not visible (duh) . Now create the trigger. Make it small, like 2x2, and place it over the MG. Do NOT set the activation to "anybody", since that will mean the MG will explode right away. Add "MG1 setdammage 4" (without quotes) in it's On Activation field. Now, once someone steps over the trigger, the MG will explode and kill the guy who walked over it. Tada...if u want, u can now place a real mine over the 'buried' MG. Share this post Link to post Share on other sites
Rob 1 Posted December 5, 2001 space cadet i tried ur way cuz it sounded cool but it didn't work... did u use it in a script? Share this post Link to post Share on other sites
Space Cadet 1 Posted December 6, 2001 Yeah, I did use it in a script cos I wanted a barrage of around 30 shots, all landing in different spots, so I just created a loop in a script and ran the code 30 times. It should still work in the editor though, did you get an error message - or just nothing happened? Share this post Link to post Share on other sites
Rob 1 Posted December 6, 2001 it would let me enter it in the trigger. but that must be becuz it doesn't recognise it. Share this post Link to post Share on other sites
Rob 1 Posted December 8, 2001 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: "Heat120" CamCreate [(getpos aP) select 0 + Random 10,(getpos aP) select 1 + Random 10, (getpos aP) select 2 + 30] <span id='postcolor'> can u plz makeme one that would actually work becuz i know this wont work as a script just by looking at it. Share this post Link to post Share on other sites
MP 0 Posted December 8, 2001 Try this Motha F*ucka out!!! _Centre = _this select 0 _area = _this select 1 _guns = _this select 2 _freq = _this select 3 _rounds = _this select 4 _delay = _this select 5 _CentrePos = GetMarkerPos _Centre _cx = _CentrePos select 0 _cy = _CentrePos select 1 _areaX2 = _area * 2 ~_delay _ammoType = "Heat120" #Update ? (ariStop == 1) : goto "End" _a = _guns + 1 _a = _a - 1 #Salvo _tempObj = _ammoType camCreate[_cx + Random(_areaX2) - _area,_cy + Random(_areaX2) - _area,50] ~0.01 ~0.4 _a = _a - 1 _tempObj = objNull ? (_a > 0) : goto "Salvo" _rounds = _rounds - _guns ~_freq - (_guns * 0.4) ? (_rounds > 0) : goto "Update" #End exit it uses the same init as my light script... ["Targetmarker",Spread,Guns,Reloadtime,Ammo,Delay] exec "heavy barrage.sqs" Share this post Link to post Share on other sites
Rob 1 Posted December 8, 2001 i tried it and it kept giving me error messages..... btw did u get my mission? Share this post Link to post Share on other sites
MP 0 Posted December 8, 2001 Yes gonna work on it tomorrow Share this post Link to post Share on other sites
Rob 1 Posted December 8, 2001 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE"> Quote: from Rob on 3:06 am on Dec. 8, 2001 i tried it and it kept giving me error messages..... <span id='postcolor'> i meant can u tell me how to use it cuz when i put the command line in the triggger it would let me use ammo,delay i had to use ammodelay. but it still didn't work.... and yes i have put it in a script and yes i have made a marker for where its supposed to go. Share this post Link to post Share on other sites