Results 1 to 2 of 2

Thread: Help with add action

  1. #1

    Help with add action

    Hello guys, I'd just like to say what a noobish question I am about to ask but I have to because I am completely stuck so... when I use the addaction command, I am adding a disarm action so the ai can sneak up to that character and use this to disarm him, now, what I'd like to do is when writing the script, make it so that I can add multiple people's addaction to work with this one instead of having to make one for every person.... sounds kinda complicated, but I just need a variable that the target of the addaction is a part of or an array so I can have it like for example

    removeallweapons _target

    or something like that, I know I can't really explain it and I have been looking for the past couple days for this answer as well. I wouldn't mind a noobs guide to scripting as well if you guys can refer to me one but please can someone just help me with this? I know the target of an addaction must get added onto an array or something but I just need to find that array!

  2. #2
    Sergeant Shammy2010's Avatar
    Join Date
    May 15 2010
    Location
    Los Angeles
    Posts
    107
    Author of the Thread
    Nevermind I found it atlast, just add this first to your sqf that will be executed:

    _host = _this select 0;
    _caller = _this select 1;
    _id = _this select 2;

    where _host is the target, _caller is the person perforiming the action, and _ID, is the ID of the waypoint

Similar Threads

  1. Add action help
    By =101AD=Richard in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 14
    Last Post: Mar 2 2011, 17:39
  2. Add action Enable M107 tracer ammo to action menu
    By djdeluxe76 in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 3
    Last Post: Jul 20 2010, 23:05
  3. Remove Action to add another Action.
    By Blackfox34 in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 4
    Last Post: Jul 10 2010, 00:40
  4. Add action in mp
    By Vosku in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 11
    Last Post: Feb 21 2003, 22:15
  5. Add action
    By LaserGuidedBunnyRabbit in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 4
    Last Post: May 8 2002, 21:54

Posting Permissions

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