BLSmith2112 0 Posted April 15, 2007 The Official FAQ for Arma! *I think* Post ether FAQ's you frequently hear or post questions that you have. I will update this post frequently. ====================================== Tell a unit to get in vehicle as driver: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Unitname moveInDriver NameOfObjectGettingInto Tell a unit to get in as gunner: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">UnitName moveInGunner NameOfObjectGettingInto Tell a unit to get in the car not as driver: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">UnitName moveInCargo NameOfObjectGettingInto Access a Unit Under a Waypoint: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Hold shift and double click unit. Make an object/unit at a certain height: "+1" is the height of that object unit. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setPos [getpos this select 0, getpos this select 1, (getpos this select 2) +1] Turn ON Night Vision <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">unitname action ["NVGOGGLESON", unitname] Turn OFF Night Vision <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">unitname action ["NVGOGGLESOFF", unitname] Remove NVGoogles From Inventory <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">unitname removeWeapon "NVGoggles" Unit Binoculars (safe mode) <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setBehaviour "safe"; this addWeapon "Binocular"; this selectWeapon "Binocular" Time Acceleration/Deceleration (Anything under 1 is slower than normal, likewise, anything over makes time faster) <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">setacctime .05 Set Satchel Charge <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Unitname fire "pipebombmuzzle" Blow satchel charge <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Unitname action ["TOUCHOFF", Unitname] Learning Camera Scripting (Camera.sqs Exclusive): Quote[/b] ]My Tutorial Good place to start learning scripting. This is an old (300 Page) scripting tutorial. Perhaps we will see a new one in the coming months Quote[/b] ]Merciless Creation's "OFP: Uber Reference Guide" To remove all weapons from a unit: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">removeAllWeapons UnitName To Change your Civilian into a special Unit (Like King, Anchorman, News Reporter, etc:) Quote[/b] ]Open Mission.sqf Change "Civilian": <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">vehicle="Civilian"; To One Of these units: King FieldReporter Anchorman NorthPrimeMinister MarianQuandt MarianQuandt02 MarianQuandt03 MarianQuandt04 Make sure that you save the Mission.sqf and then RELOAD your mission. Saving the mission after you've edited the Mission.sqf will make your "special unit" revert back to "Civilian". Make a player do a specific animation: Check Out The Wiki Animations For ArmA. Also, This Animation Viewer (Mission). Simply replace "TestSurrender" with anyone of the animations listed in the Wiki: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">a1 playmove "TestSurrender" If you have troble with "if(unit=="something")" command use <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">hintC format ["My unit %1",unit]; To destroy something <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"R_Hydra_HE" createVehicle (getPos object); Change an Objects: Height, Direction, Tilt, Bow. (BETA Script). Quote[/b] ]Directions: Link. Download: Download. Credit to MadDogX from the forums. ================= ArmA's Editing Interface Tutorial Wiki: ArmA. All commands, scripting info, modeling info, and more. Wiki: ArmA Commands. Wiki: ArmA Weapon Names (Bombs/Missles/etc.) Wiki: Animations. Wiki: In-Game Classes (With Pictures). ================= More Commands, OFP actually.. but good reference material OFP COMREF OFP Functions OFP Script Examples ================= I will update this thread periodically (daily/bi-daily) with new submissions. Share this post Link to post Share on other sites
shuko 59 Posted April 15, 2007 To remove all weapons from a unit: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">removeAllWeapons this Share this post Link to post Share on other sites
fasad 1 Posted April 15, 2007 great idea mate! i've been thinking of trawling the forums and making up a mission editing FAQ wiki article. Can I recommend using camel format, like the wiki (eg moveInDriver). also, check this "set acctime" Share this post Link to post Share on other sites
BLSmith2112 0 Posted April 15, 2007 Fixed a few names and acctime Keep the FAQ's coming. Also if you were afraid to ask your question before, ask it now for it never has to be repeated again because everyone can come here! Share this post Link to post Share on other sites
BLSmith2112 0 Posted April 15, 2007 The thread was promoted by a mod and is no longer a question thread. It's the FAQ! My FAQ's that I always forget! 1. Answered. 2. Using "Hands Behind Head Animation" How can a unit walk with hands behind his back? Possible? 3. Answered. 4. How to force an AI to look at a certain direction and not to strive from it. 5. How to force an AI to aim his gun at an enemy but not shoot (Without holstering his rifle in 2 seconds) 6. Answered. 7. Answered. 8. How to have a civilian NOT lay down every time near another side's unit? 9. How do you keep an force an AI to keep their pistol drawn? Even after removing the main weapon, they still holster it. Share this post Link to post Share on other sites
Jack-UK 0 Posted April 15, 2007 Excellent, thanks for this thread, being a new mission editor its very useful for some frequent script commands etc =) Cheers Victor! Share this post Link to post Share on other sites
BLSmith2112 0 Posted April 17, 2007 How to quickly rotate a unit in the editor without going into the individual properties of a unit: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Hold Shift How to rotate an entire line of units (Keeping their line, but just changing the direction of all the units) <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Select all the Units you wish, Hold Shift and drag the mouse Share this post Link to post Share on other sites
BLSmith2112 0 Posted April 22, 2007 Feel free to submit anything you find useful in your daily editing lives. Share this post Link to post Share on other sites
BLSmith2112 0 Posted April 24, 2007 This was much more popular with OFP... Huh.. wonder what happened between now and then. Share this post Link to post Share on other sites
Commando84 0 Posted April 24, 2007 sometimes to place guards in guard towers a waypoint works and sometimes its best to use setpos also when placing a waypoint into a guard tower they sometimes mess up if it says something else than move :P Share this post Link to post Share on other sites
HqPL 0 Posted April 25, 2007 Moderators could delete ale useless posts in this topic that will make this FAQ more clear and easier to use. [offtopic] isnt this another arma editing faq ?[/offtopic] Share this post Link to post Share on other sites
BLSmith2112 0 Posted April 25, 2007 To HqPL: No there isn't another ArmA Editing FAQ. To TheElite: The biki is an unorganized ocean that (to me) is impossible to navigate and understand. Unless given a direct link, I find it difficult to find what I'm searching for. And even if I do manage to locate something, I have no idea what it means. To Commando84: Quote[/b] ]sometimes to place guards in guard towers a waypoint works and sometimes its best to use setpos Perhaps give us an example of using setPos on a tower? I'd sure appreciate it at least I added these to the main post for easier access. Keep them coming! Edit: Also Added: 1. MadDogX's Script on how to make certain objects able to be tilted, turned, height adjusted, and bow adjusted. Basically the X/Y/Z position of a build. Picture: Link to thread for directions: Link Download File Things that could be interesting to add: 1. IED Script (Who made it and it's location are unknown to me). 2. Your call. Things that will be added if released. 1. Editing Tutorials 2. Editing Videos? (That would be nice). Share this post Link to post Share on other sites
Moktar 0 Posted April 25, 2007 I read several times that the BI wiki is unefficient and I want to repeat that I totally agree with that. The BI Wiki is an huge DB of functions/commands features without any structure. Where is the BI tutorial or real presentation ? Is there any links between the differents subjects described in the BI Wiki ? We are in front of a package of functions/commands that are mixed with the old methods of OFP and no attention have been taken to organize and drop the deprecated features. BI says "sqs syntax is deprecated". Really ? Each text written refer to this syntax. WTF ? I agree with people that complain about the time "we" spent in browsing all categories of the function to eventually find out the feature we are looking for. It's abnormal. But is this thread a solution ? I don't think so. I only find out another list of features and functions similar to the BI wiki, adding some special cases. Why not, but in several days this "DB" will become as unreadable as the BI wiki is . I am sure that all the contributors of this thread want to share their experience and are animated with good intentions. May be we should concentrate our energy in contributing to each try of drawing a tutorial. My opinion Share this post Link to post Share on other sites
BLSmith2112 0 Posted April 26, 2007 A large and easy to read English tutorial would be ideal. However, simple commands are nice to know. Hence the FAQ, it was help in OFP and would be a huge help in ArmA as well. Share this post Link to post Share on other sites