Results 1 to 4 of 4

Thread: "put this code in the init.sqf", means create a new file init.sqf? or put in init?

  1. #1

    "put this code in the init.sqf", means create a new file init.sqf? or put in init?

    G'day guys,

    I see in a lot of threads where people have posted code, that they frequently mention things like, put this code, in the helicopter's init.sqf or in the soldiers init.sqf. Could someone please tell me (and I'm sorry if it's just bloody obvious) what this exactly means? Does it mean create a new folder in your ArmA2 missions folder, called init.sqf and execute it in a somethings init or in a trigger? - or - does it mean just chuck the code into the whatever's init line?

    Also is there a difference between doing it one way or the other.

    Thanks,
    Chuck Inglish, Mikey Rocks = COOL KIDS = good music (look them up)

  2. #2
    When someone specificly says "put it in init.sqf" you go into the missions folder

    In:
    MyDocs/ArmA 2 Other Profiles/*your profile*/Missions/*yourmission*/

    ( If this changed for OA, I'm sorry, I don't own OA at the moment. But I guess its basicly the same just with OA somewhere?)

    Then create a file called init.sqf and place the code in there. (obviously, if one already exists there from prior use, Use that one)

    Then you should have 2 files in that folder, init.sqf and mission.sqm

    Place code given into init.sqf file.
    Ben

  3. #3
    There is no such thing as object's init.sqf.

    You can either have an object's init (short for initialization) or init.sqf/init.sqf.


    In the first case it means you should open the editing window for the unit in question in the editor and paste the code into the Initialization box.
    As for the second case, you have to create a text file in the mission's root directory called init.sqf and paste the code there.

  4. #4
    Corporal undercoverbrother's Avatar
    Join Date
    Oct 3 2010
    Location
    I'm at grid 010Y7901
    Posts
    92
    Author of the Thread
    Thanks for clarifying that up for me fellas, its just that I was unsure because, I've seen people saying stuff like put this (whatever code) in the helo's init.sqf and I was confused.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •