Jump to content
Sign in to follow this  
terellef

How do i include a init.sqf to my mission?

Recommended Posts

Hello I am fairly new to arma I own arma 2 oa

I’ve been downloading different add-ons E.g. weapons cars and planes

I’ve searched forever and bought many different games such as gta sa, gta iv/eflc

Just to run an arrest mod that allows the player to stop and search random civs arrest them

And take them to the police station

www.lcpdfr.com

www.policemod.com

Now I have finally found what I’ve always been looking for in arma these are the things I’m having problems with

Detain escort extract

And cim .

for some weird reason cim mod just does not work for me I’ve followed the readme word for word followed every instruction but still it doesn’t work for me and its really frustrating there’s no example pack based on the original maps so I could download one.

the second thing I’m having problems with is this sqf situation lol its like hieroglyphics to me I’m used to downloading a script file placing it in gta scripts folder and running it but in this case on arma I downloaded a mod called detain escort and extract thinking it’s a simplified version but it just comes in parts

Arrest

Detain

Escort

Music

ECT

and I don’t understand what to do with it and how I go about putting these in the game I know how to use the search bar and I looked up for various references but no luck or indication the highlights specifically on this subject so if someone know how I do this or if someone has a document that explains this /or and I no enough or's.... or a video tutorial that would be much appreciated because I really wana crack on with this mod and play I go home every day and try to figure it out but always gets too late and I have to sleep and rise to try again n I’m not far from falling over the edge with this id be over the moon if someone could help thank you

:butbut:

Share this post


Link to post
Share on other sites

Dude. Calm down, breathe. Slowly. It's all gonna be okay.

For the detain escort and extract script:

Just copy paste the Music and Scripts folders into your mission directory.

If you already have an init.sqf file in there, copy this inside:

act1 = player addaction ['<t color="#003300">' + "Investigation Menu" + '</t>', "Scripts\Investigate.sqf", [], 5, false, false, "", "_target == player"];

Otherwise just copy paste the init.sqf from the download to your mission folder.

Same, if you have a Description.ext, copy this inside:

class CfgMusic
{
tracks[]={getDown,move,Radio1,Radio2,Zipkuff};

class Music1
{
name = "getDown";
Sound[] = {\Music\getDown.ogg, db+0, 1.0};
};

class Music2
{
name = "move";
Sound[] = {\Music\move.ogg, db+0, 1.0};
};

class Music3
{
name = "Radio1";
Sound[] = {\Music\Radio1.ogg, db+0, 1.0};
};

class Music4
{
name = "Radio2";
Sound[] = {\Music\Radio2.ogg, db+0, 1.0};
};

class Music5
{
name = "ZipKuff";
Sound[] = {\Music\ZipKuff.ogg, db+0, 1.0};
};


};

Otherwise copy/paste it from the dowbnload to your mission directory.

There you go.

About the Civilian Interaction Module now, i actually have no idea what went wrong, but i guess you missed a step somewhere. Did you follow the instructions in

?

Welcome to the forums and stuff. Though you might wanna change that to a descriptive topic title before one of the mods gets here, and put some punctuation in there!

Hope that helped.

Share this post


Link to post
Share on other sites

act1 = player addaction ['<t color="#003300">' + "Investigation Menu" + '</t>', "Scripts\Investigate.sqf", [], 5, false, false, "", "_target == player"]; <<< so i add that to the mission sqm

and i understand the second bit i have no discription so i just add it and it will work thankyou so much :) im over the moon i am at work atm but i cant wait to get home now :0 :) thanks alot

blackmamb

and to kylania this video is contradictive to the readme thats why its frustrating where the crm locations and all the explenation for reactions is not there but then again maybe this way in the video may work so i will go home and try again i will also download this video for extra guidence thankyou for your help :)

Share this post


Link to post
Share on other sites

You never add anything to the mission.sqm. That's generated by the in game editor. It would go in a file called init.sqf in the same folder as the mission.sqm file though.

I'm not surprised that the video and readme differ. While I've never used CIM, I did notice that much of it's "changelog" was fixing the readme in one way or another. All of this "police" stuff isn't native to ArmA2, which is a milsim. So that means you have to have complex and custom code for all of it, which can often by confusing or downright broken.

Share this post


Link to post
Share on other sites

Thanks for giving me the valuable information the mod is working now and i now understand how to set up the mod. however for some reason the helicopter dosent come when i ask for an extraction but the rest of the mod works so thanks. if anyone knows why the helicopter dosent come please let me know

kylania i just realised your the guy who made the scripting website you are a very smart guy thankyou for taking your time out to help me much appr

Edited by terellef

Share this post


Link to post
Share on other sites

Never actually used that script, but I'll take a look at it. :)

---------- Post added at 12:00 PM ---------- Previous post was at 11:37 AM ----------

Seems to be working for me. I just put down the CIM module and the CEM modules. Synched the CEM with my player. Placed down a civilian unit on the map. Walked up and Detained him via Shift+Scrolling and then used 0-0-9 radio call to summon the helo. It came over. Then I ordered the detained unit to get in the chopper. Once I did did the Give All Clear (0-0-0 radio) and the detainee ungrouped from me and the helo flew away.

Make sure the CEM is on a flat area since that's where the helo will spawn.

Share this post


Link to post
Share on other sites

Just got your PM, i'll look into it, but try and follow kylania's indications as he has tested it.

Share this post


Link to post
Share on other sites

The helo crashed upon returning to the airbase... :(

I had the module right on the pre-painted helo pad at the Zargabad airfield.

Share this post


Link to post
Share on other sites

Helo pilots AI... They're just gonna make you cry.

I'm surprised that thing doesn't use Mando Heliroute though.

Share this post


Link to post
Share on other sites

Ah i see theres a slight misunderstanding here

I'm not talking about cim that still does not work at all for me I'm using escort detain extract mod.

I really do understand this now so i know its just me. with the ede mod i get the menu up

with the investigation menu everything works except the part where it says extract because i click a lz on the map it says its coming but never comes

so what i've done is i've used the script Kylania made called planned extraction but this only works once per mission so i can only do this once.

with the cim i don't even get a menu at all its bizarre

if you someone made an example on the original maps that would be helpful or maybe its just the version ive got since is beta, or anyone know where the

old version is.

or if Kylania could enlighten me as how i could make the planned extraction loop so i could use it repeatedly in a mission

Share this post


Link to post
Share on other sites

Oooh, that, yeah that script I wrote is less than optimized for MP. :( Someday I'll rewrite it!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×