Results 1 to 4 of 4

Thread: One more stupid question

  1. #1

    One more stupid question

    I need some little help here. I have a unit, in it's initialisation field
    Code:
    this addAction ["Dance like a fool!","dance1.sqf",[],1,false,true,"","danceTime"]; this addAction ["Dance like a freak!","dance2.sqf",[],1,false,true,"","danceTime"]; this addAction ["Dance like a nut!","dance3.sqf",[],1,false,true,"","danceTime"];
    But what I have to write in dance1\2\3.sqf so the action (dance) is activated only for the one, who called it.
    Code:
    ??? playMove "ActsPercMstpSnonWnonDnon_DancingDuoIvan";
    and is that possible to create 1 dance.sqf with 3 lines (3 different dances) -
    Code:
    playMove "ActsPercMstpSnonWnonDnon_DancingDuoIvan";
    playMove "ActsPercMstpSnonWnonDnon_DancingDuoStefan"
    playMove "ActsPercMstpSnonWnonDnon_DancingStefan"
    and what shall I write in initialisation field of the unit then?

  2. #2
    First Sergeant Buliwyf's Avatar
    Join Date
    Jan 1 2004
    Location
    Hamburg / Germany
    Posts
    823
    Hi..

    ..first of all: Nice topic title..

    Put in your SQF-file:
    Code:
    _caller = _this select 1;
    _caller playMove "ActsPercMstpSnonWnonDnon_DancingDuoIvan";
    In that way only the caller of the action menu entry executes the animations...

    Hope it helps...

  3. #3
    Thank you very much, and still how about
    and is that possible to create 1 dance.sqf with 3 lines (3 different dances) -


    Code:
    playMove "ActsPercMstpSnonWnonDnon_DancingDuoIvan";
    playMove "ActsPercMstpSnonWnonDnon_DancingDuoStefan"
    playMove "ActsPercMstpSnonWnonDnon_DancingStefan"
    and what shall I write in initialisation field of the unit then?

  4. #4
    If you can not be bothered neither can we.

    §21) Use descriptive thread titles

    If you start a new thread, please make sure your thread title explains what you want without forcing people to read through your post first.
    Thread titles such as "How in the world do I...", "Need help!" or "Will we ever see..." are anything but descriptive. We do not allow these kind of titles and threads with such titles are subject to be closed.
    ** locked

Similar Threads

  1. maybe a stupid question.
    By Antonkr in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 2
    Last Post: Jan 16 2010, 15:21
  2. Stupid question
    By Doogerie in forum ARMA 2 & OA - GENERAL
    Replies: 5
    Last Post: Oct 19 2009, 15:45
  3. A stupid question,but....
    By xREPTILEx in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 5
    Last Post: May 12 2002, 03:47
  4. A stupid question.
    By Captain Kickass in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 1
    Last Post: Dec 23 2001, 15:26
  5. Stupid Question...
    By Akira in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 3
    Last Post: Dec 19 2001, 02:19

Posting Permissions

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