Results 1 to 3 of 3

Thread: Help..2 scripting questions

  1. #1

    Help..2 scripting questions

    Hey Guys/Gals.. I scoured the forums and the web.. can't find these answers.

    1. I'm creating a mission where the Blufor must find a radio. Pick up the radio and call in the extraction heli. My problem is: I want to plant a radio that is programed to call in the chopper. I know how to use alpha and activation with trigger and synchronization to start the chopper moving. What scripts do i need to first plant a functioning radio that a Blufor can find then pick up and call in the chopper?

    2. I then want to place the radio in a cargo (any vehicle cargo) then have it (the vehicle) deployed to a random spot on the map..(I know how to do this). However, can I attach a trigger to the vehicle that will synchronize another activation when discovered?... say start other vehicles to another waypoint (which i know how to do).I only know how to plant triggers to a specific area on the map.. not to a specific movable object!

    thanks for the help..Bill

  2. #2
    Master Gunnery Sergeant twirly's Avatar
    Join Date
    Sep 13 2010
    Location
    Gods Own (NZ)
    Posts
    1,302
    These are the commands you need. If necessary try everything one by one... and try to understand whats going on. Of course you will need to know the basics.... like how to create and edit .sqf's and how to execute scripts and set Global Variables from your triggers. If you don't... well then you are probably jumping in at the deep end.

    This creates a laptop at the players position. I don't know the classname for the correct radio... or even if there is one! I couldn't find it.

    Code:
    _laptop = createVehicle ["notebook", position player, [], 0, "NONE"];
    This is how you add an action to an object:-

    Code:
    actionLaptop = _laptop addAction ["Call for extraction", "extract.sqf", position player, -1, false];
    This is how you remove the action (actionLaptop) you added to the laptop:-

    Code:
    _laptop removeAction actionLaptop;
    The script ("extract.sqf") you run from the addAction can be as simple as setting a Global variable to TRUE which can then be detected by an editor placed trigger.
    Last edited by twirly; Mar 7 2012 at 01:09. Reason: Fixed link

    "Learn by doing!" - Quoted from a post by Imutep

    OUTERRA - OUTERRA - OUTERRA - OUTERRA - BLOWMIND!

  3. #3
    thanks!! I'll give it a go!!

Similar Threads

  1. Some scripting questions
    By [RT] Sauron in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 8
    Last Post: Sep 3 2009, 18:57
  2. Scripting and a few other questions?
    By armybob2000 in forum ARMA - MISSION EDITING & SCRIPTING
    Replies: 4
    Last Post: Feb 20 2007, 03:53
  3. two scripting questions
    By lethal in forum ARMA - MISSION EDITING & SCRIPTING
    Replies: 8
    Last Post: Jan 2 2007, 20:24
  4. scripting questions
    By ruff in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 8
    Last Post: Jan 26 2005, 18:01
  5. Need help for little questions about scripting
    By Lorenzo in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 4
    Last Post: Mar 17 2002, 00:40

Posting Permissions

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