Sgt. Stryker 0 Posted March 17, 2004 Ok i was wondering if theres a script for this or if its even possible. Have an area with explosions going on all over, say every 15 sec or so, BUT it NEVER hits or injures the person you are playing as. So i want explosions all around you (like 20 feet away) but never on you, ya get what i mean? I'd love to add custom incoming mortar sounds but thats later i guess. Share this post Link to post Share on other sites
doc_no1 0 Posted March 17, 2004 Hey Stryker,try an artillary barrage script here,you choose which one http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_2 Share this post Link to post Share on other sites
Sgt. Stryker 0 Posted March 17, 2004 none of those have exactly what I'm looking for though, I want a script that will never kill you but can kill others on your squad, in my case a bunch of Marines on a hill top. Share this post Link to post Share on other sites
Taurus 20 Posted March 18, 2004 none of those have exactly what I'm looking for though, I want a script that will never kill you but can kill others on your squad, in my case a bunch of Marines on a hill top. That will never work, if you get an shell upon your head you'r stone dead. unit allowDammage 0 was removed pretty early. Share this post Link to post Share on other sites
Snake Man 407 Posted March 18, 2004 Its a shame you cant have any Boom Boom. Share this post Link to post Share on other sites
KingN 251 Posted March 18, 2004 Ok, I made a small barrage script with a safe zone for you. Here's the script, name it SafeBarrage.sqs: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_k = _this select 0; _d = _this select 1; _t = _this select 2; #LOOP BombPos setpos [(getpos BombCenter select 0) + random _k, (getpos BombCenter select 1) + random _k] ?((BombPos distance player)<_d): goto "LOOP" Bomb="Heat125" camcreate [(getpos BombPos select 0), (getpos BombPos select 1)] ~(random _t) ? StopBarrage : exit Goto "LOOP" NOTE: You need 2 game logic obejcts for this to work: 'BombCenter' which points out the area where the barrage will be centered, and 'BombPos', don't worry about this just put it somewhere on the map. Acitvate the script with this: [A,B,C] exec "SafeBarrage.sqs" A= The radius of the Barrage in meters B= Radius of the safe zone around player within the Barrage area, suggest you put at least 15m C= Maximum time between 2 bombs if you want the barrage to end at somepoint, do it with this: StopBarrage=true Share this post Link to post Share on other sites
Sgt. Stryker 0 Posted March 18, 2004 thankyou that is exactly what I was looking for, I think i gotta see how it works after my classes. Share this post Link to post Share on other sites