ravennx
Member-
Content Count
15 -
Joined
-
Last visited
-
Medals
Everything posted by ravennx
-
Ok guys... im looking to create a veh or object. Ive got a script.. but what i want is it to Create at my exact position and Face the way the player is facing. It creates usally in a random pos and not the same way player is facing. Also Can I give these created veh names in the script somewhere. Thanks for the help. deletevehicle m2; player playMove "AinvPknlMstpSlayWrflDnon_medic"; sleep 3.0; WaitUntil {animationState player != "AinvPknlMstpSlayWrflDnon_medic"}; _mark = format["%M2StaticMG",(name player)]; deleteMarker _mark; m2 = "M2StaticMG" createVehicle (position player); m2 setdir (getdir player); m2 addEventHandler ["killed", {handle = [_this select 0] execVM "scripts\bury.sqf"}]; _pos = position m2tent; _mssg = format["%1's M2 Static",(name player)]; _medmark = createMarker [_mark, _pos]; _medmark setMarkerShape "ICON"; _medmark setMarkerType "Marker"; _medmark setMarkerColor "ColorredAlpha"; _medmark setMarkerText _mssg; _medmark setMarkerSize [0.5, 0.5]; _medmark setMarkerDir 45; exit
-
To start with Im having problems with limiting this script. I want the unit to be able to use Arty wherever so I grouped the unit with the trigger. The problem is... the Removeaction wont work because the trigger just keeps activating. Here are the scripts im using. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> Trigger On ACT:thislist exec westari\westaddaction.sqs" On Dea:westadd=false // westaddaction.sqs _soldier = _this select 0 ~1 ID = _soldier addaction ["FIRE 125M AT","westari\setfiresa.sqs"] ~1 ID = _soldier addaction ["FIRE 105M HEAT","westari\setfire.sqs"] ~1 ID = _soldier addaction ["FIRE CLUSTER ROUND","westari\setfireat.sqs"] ~1 ID = _soldier addaction ["FIRE SMOKE SCREEN","westari\setfiresm.sqs"] westadd=true @!westadd _soldier removeaction ID Exit //setfire.sqs setfire=true titletext ["Click on the map to set coordinates. (ANTIARMOR RONDS)","plain down"] onMapSingleClick "ATarget setpos _pos;setfire=false" @!setfire [] exec "westari\ari.sqs" "Firepoint" setmarkerpos getpos ATarget fire=true publicvariable "fire" publicvariable "ATarget" onMapSingleClick "" titletext ["","plain down"] exit //ari.sqs #Loop @(fire) ERadio say "arty" fire=false ?(!(local server)):exit [West, "HQ"] sideChat "ROGER FIRE SUPPORT RECIEVED, LOADING 105M HE" player addScore 5 ~10 [W1,ATarget] exec "westari\feuer.sqs" ~ Random 2 [W2,ATarget] exec "westari\feuer.sqs" ~ Random 2 [W3,ATarget] exec "westari\feuer.sqs" ~ Random 2 [W4,ATarget] exec "westari\feuer.sqs" ~ Random 2 [W5,ATarget] exec "westari\feuer.sqs" ~ Random 2 [W6,ATarget] exec "westari\feuer.sqs" ~ Random 2 [West, "Base"] sideChat "ON THE WAY" ~6 [W1,ATarget] exec "westari\feuer.sqs" ~ Random 2 [W2,ATarget] exec "westari\feuer.sqs" ~ Random 2 [W3,ATarget] exec "westari\feuer.sqs" ~ Random 2 [W4,ATarget] exec "westari\feuer.sqs" ~ Random 2 [W5,ATarget] exec "westari\feuer.sqs" ~ Random 2 [West, "Base"] sideChat "SPLASH" [W6,ATarget] exec "westari\feuer.sqs" ~ Random 2 ~6 [W1,ATarget] exec "westari\feuer.sqs" ~ Random 2 [W2,ATarget] exec "westari\feuer.sqs" ~ Random 2 [W3,ATarget] exec "westari\feuer.sqs" ~ Random 2 [W4,ATarget] exec "westari\feuer.sqs" ~ Random 3 [W5,ATarget] exec "westari\feuer.sqs" ~ Random 2 [W6,ATarget] exec "westari\feuer.sqs" ~ Random 2 "Firepoint" setmarkerpos [0,0] goto "Loop" //feuer.sqs ~Random 2 _K = _this select 0 _Z = _this select 1 _X = Getpos _Z select 0 _Y = Getpos _Z select 1 _K DoWatch [_X,_Y,5000] _A =_K Ammo "M119" ~5 _K fire "M119" #Next @ _A > _K Ammo "M119" ~2 _N = nearestObject [_K,"HeatM119"] _X = _X+((Random 60)-40) _Y = _Y+((Random 60)-40) _H = "HeliHEmpty" CreateVehicle [_X,_Y] ~1 _H say "Ari" ~12 _N setpos [_X,_Y,0] _Bomb="SH_125_HE" CreateVehicle [_X,_Y,0] ~0.5 deleteVehicle _H exit I want the Actions on a timer you can use them once every X Min. Like I said the problem is, I want the unit to use Arty Anywhere, instead of OPFOR/Present Trigger. Any help would be great. Thanks! RavennX
-
Limiting Mr-Murray Arty Script.
ravennx replied to ravennx's topic in ARMA - MISSION EDITING & SCRIPTING
I have removed that line of Code from all those scripts. It works now however, Onmap click is real buggy and sometimes the bombs dont drop at all. What I have done after that is take Mrmurrays script and MP example and drop it Exactly into what im working on. Still it doesent work. Mrmurray now has my mission.pbo. I hope to get this fixed lol For now i removed the artillery completly from my mission. Thanks RavennX (Serenity in game) -
Limiting Mr-Murray Arty Script.
ravennx replied to ravennx's topic in ARMA - MISSION EDITING & SCRIPTING
Everything is setup fine. when i host a server everything works fine. when i join my server as a client i get the actions but the m119's dont fire at all. any suggestions? thanks -
That still doesent work. I added it to the init field and it will trigger the radio message with every shot. I need it to count ammo since it has 30 rounds and no mags. Thanks RAvennX
-
When its below 5 rounds. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this addEventHandler ["fired",{if (count magazines this <5) then {[West, "HQ"] sideChat "[M119X6] OUT OF AMMO. TALK TO RESUPPLY OFFICER IN BASE TO REARM"}}] However this doesent work. any pointers? thanks ravennx
-
great thanks for the reply.. i wont be writing scripts for a bit now that i sprained my wrist real bad. thanks again. ravennx
-
Limiting Mr-Murray Arty Script.
ravennx replied to ravennx's topic in ARMA - MISSION EDITING & SCRIPTING
Just wow, I must thank you bolth and will give due credit to all the scripts. You just wont belove how much I have learned about scripting this weekend. Looks like I have some more work to do. Again Thank you. P.S. Norrin do you ever get on your MSN? I would like to thank you personaly. RavennX -
Limiting Mr-Murray Arty Script.
ravennx replied to ravennx's topic in ARMA - MISSION EDITING & SCRIPTING
That would be great Norrin. I was also looking at just limiting the ammo the Arty starts with. Any way I could go about doing that? To est it to an Exact number. Thanks Again man you really helped me out here. -
Good Idea... Btw can you take a look at my other Scripting issue. Heres the link. Arty Script issue Thanks man.
-
Hello everyone. I'm Looking for a script that Spawns AI with waypoints. This is for MP, To keep server load down i want to be able to spawn AI at a certian point. I have seen Spawn scripts before but i cant find one that allows waypoints. Any help here would be great. And one more thing.. Saw some posts on Limiting Actions such as the Arty Script. HOw would I go about Limiting it per time based. Example 3 per hour. Does This work in Arma as well? player addAction ["Action menu", "script.sqs"] One other thing, this might be a noob question.. How would i setup Default weapons and equipment for a certain spawn. Thanks in Advance. RavennX
-
This script is very nice thanks Norrin, however I'm looking for a simple script that spawns AI once then goes to a marker POS I have learned a lot on scripting over the last 3 days... But I'm having a hard time finding this simple script. Actually I wrote this Script and its working good. Thanks man! RavennX
-
Hello, Im looking for a Co-op Squad or Clan, that uses Comms. I usally play nightly and on weekends, Eastern time. I can be contacted by Xfire or just post Vent/TS info. Xfire : Ravennx Thanks!
-
Ive looked all over for those. Cant seem to find a place to download them. I can host all these files on my FTP. For EVERYONES use. Send me an email at admin@neogamers.net. I will give you FTP login. Thanks guys. RavennX
-
IM having an issue where the roads and the runway texture is white. I downloaded all the addons and installed them. I Got everything from Here: http://ofp.gamepark.cz/index.php?showthis=9533 If someone could tell me what im missin? Thanks RavennX