Milkman 1 Posted January 16, 2003 I have decrypted some Mission.pbo files and found two files that interest me and i was hoping if anyone could explain to me what they do. This first one is a Script called "poplach" and i believe it is used to simulate soldiers coming out of barracks. I found it in the 08LoneWolf.cain.pbo file: _sv = units group (_this select 0) debugLog _sv _n = count _sv _marker = getMarkerPos (_this select 1) _dir = _this select 2 _i = 0 #presunout _sv select _i setPos _marker _sv select _i setDir _dir _i = _i + 1 ? _i >= _n : goto "konec" ~ random 4 + 1 goto "presunout" #konec exit Secondly i would like to know what the command "this allowfleeing 0" or "this allowfleeing false" does(I think thats how the command looked). I remember d/l a user made mission called "Camp Commanche 1" and an error message would come up during gameplay about the allowfleeing command having a glitch, although i could still play the game. So can anyone enlighten me to what these two things do??? Share this post Link to post Share on other sites
mr. Duck 0 Posted January 16, 2003 Allowfleeing set's the courage of the particular soldier. If allowfleeing is set one 1 (this allowfleeing 1), then the soldier will always flee in face of the enemy. I can't help you with the other question though. Share this post Link to post Share on other sites
Milkman 1 Posted January 17, 2003 thanks for the help anyways Mr Duck Share this post Link to post Share on other sites
toadeater 0 Posted January 17, 2003 To get the script to work, you would execute it like this: [unitname, markername, dir] exec "poplach.sqs" unitname = name of one of the groupmembers markername = marker where you want the troops to appear dir = which direction the unit should face I put in comments below, to explain what it does: ; Get list of units in the group _sv = units group (_this select 0) ; Somekind of log I guess, gotta try this one day debugLog _sv ; get total number of units in the group _n = count _sv ; get position of the marker and direction _marker = getMarkerPos (_this select 1) _dir = _this select 2 ;set initial count _i = 0 #presunout ; teleport unit to marker location and set direction _sv select _i setPos _marker _sv select _i setDir _dir ; go to the next unit in the group _i = _i + 1 ; check if all units have been teleported ? _i >= _n : goto "konec" ; wait 2-5 seconds before going to next unit ~ random 4 + 1 goto "presunout" #konec exit Share this post Link to post Share on other sites
PC. 0 Posted January 17, 2003 in Czech.. poplach = alarm presunout = move over (teleport?) konec = end Share this post Link to post Share on other sites
Milkman 1 Posted January 17, 2003 interesting, im guessing this is some kinda script that teleports units to a certain area. Its also used in Vulcan.abel.pbo to teleport 3 t72s, 3 bmps, and 3 infantry groups from the middle of the map to the beach to simulate and invasion. Share this post Link to post Share on other sites
)=Obi=( 0 Posted January 21, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (PC. @ Jan. 17 2003,12:59)</td></tr><tr><td id="QUOTE">in Czech.. poplach = alarm presunout = move over (teleport?) konec = end<span id='postcolor'> Here's the light ! Thanks PC. Share this post Link to post Share on other sites
Spitfire 0 Posted January 21, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote ()=Obi=( @ Jan. 21 2003,05:16)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (PC. @ Jan. 17 2003,12:59)</td></tr><tr><td id="QUOTE">in Czech.. poplach = alarm presunout = move over (teleport?) konec = end<span id='postcolor'> Here's the light ! Thanks PC.<span id='postcolor'> Which is exactly the reason I always name my variables and scripts in English though I could name them in very cryptic Finnish Share this post Link to post Share on other sites