Results 1 to 4 of 4

Thread: Mapfact rucksack script without putting the file in mission folder

  1. #1

    Mapfact rucksack script without putting the file in mission folder

    Hello everyone, I just wanted to ask how I can make the Mapfact's Rucksack script be called without needing to put the script file in the mission folder... for example, create a common mission, dont save, and have the script working when you call it from an initiation line, I saw in ArmA in your user folder you create a folder called Scripts and when you save a script in there you dont need to put the script in the mission folder anymore. But for some reason in OFP it dosnt works... Maybe the resource.cpp file might help? Thanks for reading.
    "Once the first bullet goes past your head, politics... Go right out the window." - Black Hawk Down.
    "I don't have time to bleed!" - Blaine, Predator.

    Lazy mission designer, know a thing or two about scripting, add-ons config-messing-up guy.
    I don't want to sound self-centered, but I remind myself sometimes to Leonardo Da-Vinci, as far as history books say, the guy itself had revolutionary ideas, but those ideas took too much time to be developed, more than expected, and he was known for his extreme procastination... Well, I share that fact with him Also my real name is the same as his

    MISSIONS MADE SO FAR:
    [MP-COOP] [2-14 P] Recovery and revenge [OFP: Resistance]
    As always, more to come soon!

  2. #2
    Sergeant Major Zulu1's Avatar
    Join Date
    Feb 19 2006
    Location
    Los Angeles, CA. USA
    Posts
    1,636
    From the readme file:

    IMPLEMENTING the RUCKSACK into MISSIONS

    This pretty easy. You just have to add three lines in the "init.sqs" script of your mission:
    ;--------------------------------------------------------------------------------------------------------------------------------------

    ~1
    [] exec "\MAP_Rucksack\Scripts\MAP_RuckInit.sqs"
    {_x addEventHandler ["fired",{if (_this select 1 in MAP_RuckSackTypes) then {_this exec "\MAP_Rucksack\Scripts\MAP_DropMag.sqs"};}]} foreach [ap,b2,b3,b4,b5,b6]
    EXIT
    You need to name your units ap(player), b2,b3,b4 etc. or replace these after the foreach [... with your own names.

    To add the radio do this:
    IMPLEMENTING the RADIO into MISSIONS


    This isn't too hard neither. For the radio you have to add just a little to your init.sqs:

    ;--------------------------------------------------------------------------------------------------------------------------------------
    ;init.sqs

    ~1
    [] exec "\MAP_Rucksack\Scripts\MAP_RuckInit.sqs"
    {_x addEventHandler ["fired",{_this exec "EH_Fired.sqs";if (_this select 1 in MAP_RuckSackTypes) then {_this exec "\MAP_Rucksack\Scripts\MAP_DropMag.sqs"};}]} foreach [ap,b2,b3,b4,b5,b6]
    EXIT

    ;--------------------------------------------------------------------------------------------------------------------------------------

    Then you'll need a description.ext file. Into that you write or copy the following line:

    ;--------------------------------------------------------------------------------------------------------------------------------------
    ;description.ext

    #include <MAP_Rucksack\Radio.h>
    Same thing with unit names apply.
    Last edited by Zulu1; Oct 15 2010 at 00:26.
    System Specs: [Intel i5 655k 3.2ghz unlocked]...[8gb ddr3 1344mhz ram]...[evga GTX660sc 2gb gddr5]...[Creative Sound Blaster X-Fi Xtreme]
    Worlds largest collection of OFP files known to man.

  3. #3
    the script doesn't need to be in your mission folder but it does have to be in a pbo somewhere. create a folder, put the rucksack or any other script you need in it, use a converter to create a pbo and put that pbo inside the addons folder. it will be processed when you start the game so all you need to do is call it using the correct path
    Code:
    this exec "myNewPBO\myScript.sqs"

  4. #4
    Yes, will try that and lets hope it works, Zulu1 and SilverRanger, thanks for the help given

Posting Permissions

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