-
Content Count
1304 -
Joined
-
Last visited
-
Medals
Everything posted by twirly
-
Script loop over all OPFOR in zone
twirly replied to lightspeed_aust's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
The instructions for it are here....a demo mission is included:- http://forums.bistudio.com/showthread.php?t=76423&highlight=housepatrol.sqf -
Ejecting vehicles from C130j
twirly replied to thefox1787's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
This thread here might help you.... http://forums.bistudio.com/showthread.php?t=77397&highlight=paradrop -
ERROR: if (triggeractivated trigger1) then {
twirly replied to scajolly's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hi...If I understand you correctly maybe you can try it this way :- hint "out"; sleep 3; waituntil {triggeractivated trigger1}; hint "in1"; "smarker" setMarkerPos (getMarkerPos "obj1"); "flag" setMarkerPos (getMarkerPos "obj1"); waituntil {triggeractivated trigger2}; hint "in2"; "smarker" setMarkerPos (getMarkerPos "obj2"); "flag" setMarkerPos (getMarkerPos "obj2"); -
Wow...you must have a memory like an elephant! I can't remember that far back. So besides the short term memory loss caused by Jamaican tobacco.....apparently there's some long term memory loss as well! LOL!
-
Weird error when using exitWith
twirly replied to Lucky44's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
@Carl....Ahh...yes. That is correct! My bad. -
C-64! Been there....done that! Wrote an oscilloscope program for it using assembly lang.
-
Weird error when using exitWith
twirly replied to Lucky44's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
you don't need the =="true"... true is boolean and not text! Use this instead :- if (quitNow) then {... }; -
I had a quick look at counting two hits on a simple target and then making it go down....and gave up! I did find this cool piece of work in my downloaded scripts though.....and also found the link for you. The code you need is probably buried in here somewhere. UNA Targets....nice stuff! http://forums.bistudio.com/showthread.php?t=107452&highlight=una+targets Hope it helps.
-
Entered vehicle return info.
twirly replied to cougarxr7's topic in ARMA - MISSION EDITING & SCRIPTING
Try this mate.... In the editor....place a soldier (player). Place an empty MH-6J. Create a script...here it's called myscript.sqf....and put it in your mission folder :- "myscript.sqf" ..... while {true} do { if (vehicle player [url="http://community.bistudio.com/wiki/isKindOf"]isKindOf[/url] "MH6J_EP1") then { hintsilent "This is an MH6"; } else { hintsilent "This is not an MH6"; }; sleep 1; }; To call the script put this code in the players Init field:- nul = [] execVM "myscript.sqf"; Get in the chopper to see the hint change. There are other ways to do this....but this is following what you have there. -
How to Para drop Opfor
twirly replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Add a trigger to the demo activated by BLUFOR PRESENT....put the line below in the trigger's "On Act" field. In the init.sqf......comment out the same line.....as we no longer want it running from the init.sqf nul = [[wsqd1,wsqd2,wsqd3],wplane1] execVM "veh_movein.sqf"; -
Multiplayer Mission Editor, couldn't find what I was looking for.
twirly replied to Iliad's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
No bother man...You should be able to re-pack it with Eliteness.... or you can install the BIS Tools (biggish install). There's some PBO tools in there. Easy way :- You can also save the mission from the editor as a Multiplayer mission. When you go to save it use "Export to multiplayer missions" ... instead of "User mission". It will end up in your Arma2\MPMissions folder. -
Delete Vehicle When Destroyed
twirly replied to doomanchu's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hey mate.... Bon's code is fine...you should have no problem with that. There is a little test here to show that it does work. I added a bit to it to delete the crew as well if they are left in the vehicle either fried or frying! -
Another lock/unlock Question
twirly replied to st3vouk's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Maybe it's not as simple as you think! I've looked at this three times now and I'm still thinking about how to accomplish what you need. Be patient...if someone has an easy solution for you ...it will come. -
How to Para drop Opfor
twirly replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
To delay something...the sleep command is one way. Another way would be to call the scripts only when you need them....but I'm not sure how you are using them so it's a difficult thing to answer! -
Help needed on AI Direct Speach Text
twirly replied to tromac's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
There is an oog file here that is just silence if anyone needs it. -
Execute Script When Player Joins and Respawns
twirly replied to doomanchu's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
This thread here might help you. -
Multiplayer Mission Editor, couldn't find what I was looking for.
twirly replied to Iliad's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Glad to help mate. Use whatever works for you. I guess I only tried a few and ended up using those two. The scripting question is a biggie! That's going to take a lot of dedication, pulling of hair, gnashing of teeth...domestic violence....the whole nine yards mate! LOL! Read the scripts...try to understand what they do. Try to identify things in the code and change the values....test. Keep changing values and testing until you get a handle on what's going on. Get a good Text Editor.....everything is text! A lot of people use notePad+ I believe. I use TextPad. Eventually the code will begin to make sense....and you will begin to become adventurous. Yeah mate....the wiki is good. These forums are a great source of ideas, code and help also. The commands can be daunting....but pick and choose what you learn as you go. There's a lot stuff to be found here also at OFPEC Enjoy! -
Multiplayer Mission Editor, couldn't find what I was looking for.
twirly replied to Iliad's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Look here for the tools you need mate..... Community Tools You need to de-PBO the mission...then copy it into your mission folder and then you can edit in the editor.....and also edit the scripts if you are capable. I use Eliteness and PboView. -
Dynamic City Patrols/Battles/Spawning
twirly replied to Kolmain's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Yep sure....you can put it in a while loop. Run the script on the group. In this example _found (local) has been changed to DudeFound (global). while {true} do { _cnt = 0; for [{_i=0},{_i < count units _grp},{_i=_i+1}] do { _dude = units _grp select _i; if (_dude distance _grpfob >= 1500) then {_cnt = _cnt +1}; sleep 0.01; }; if (_cnt >=1) then { DudeFound = true; } else { DudeFound = false; }; sleep 1; }; ...and then check from anywhere that DudeFound is true :- waituntil {DudeFound}; It's up to your imagination! -
Dynamic City Patrols/Battles/Spawning
twirly replied to Kolmain's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hi mate...I sent you a PM. It can be something along these lines This will check each soldiers distance from _grpfob. But only does the check on the group once. Place it in a while loop to keep checking. Maybe change _found to a Global var and keep checking that. for [{_i=0},{_i < count units _grp},{_i=_i+1}] do { _dude = units _grp select _i; if (_dude [url="http://community.bistudio.com/wiki/distance"]distance[/url] _grpfob >= 1500) then {_cnt = _cnt +1}; sleep 0.01; }; if (_cnt >=1) then { _found = true; } else { _found = false; }; -
More content added to a bug ridden program. Absolutely wonderful! A new multiplayer game!!! Why???? Have you fixed the netcode and warping? Fix the existing stuff. Take some pride in your work!
-
This is spot on! For once in this games ten year career please get everything we already have working. It's more than enough content. We don't need more broken stuff. It seems to me the broken stuff is actually intentional....for whatever reasons. Maybe some kind of business plan on BIS's part!....I am starting to believe that's exactly what it is. To get ideas and fixed code from the public and turn around and sell it back to us....but who really knows!
-
How to Para drop Opfor
twirly replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hi....have a look at this demo here.....it might help you. -
Dynamic City Patrols/Battles/Spawning
twirly replied to Kolmain's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
:) Happy to help -
Dynamic City Patrols/Battles/Spawning
twirly replied to Kolmain's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Found your problem..... you need the underscore like _this _city = [color="Red"]_this[/color] select 0; The groups are spawning now for me.