Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Random spawn in selection of locations.

  1. #11
    Of course, just call it like this

    Code:
    [unitName] execVM "randompos.sqf";
    And in the script

    Code:
    _unit  = _this select 0;
    
    ... blah blah all the other stuff ...
    
    _unit setposatl _pos;
    _unit setdir _dir;
    _unit setUnitPos "Down";
    You can feed a script any parameter you want by using that method. For example you may want to tell the script what direction and unitPos to set, rather than putting them in the array with the position data.

    [Man1,300,"up"] execvm "RandomPos.sqf";
    Code:
    _unit  = _this select 0;
    _dir  = _this select 1;
    _upos  = _this select 2;
    
    ...
    
    _unit setposatl _pos;
    _unit setdir _dir;
    _unit setUnitPos _upos;
    hackers come in my server, make people dance

    Click to see my Rig!
    Spoiler:

  2. #12
    Quote Originally Posted by kylania View Post
    Here's the video you are talking about I believe:

    http://www.youtube.com/watch?v=bynzzMt7Fg4

    also part 1.
    Great tutorials! Thanks for the links!

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Moving Multiple Objects/Units to Random Locations
    By fatty86 in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 20
    Last Post: Dec 6 2010, 22:56
  2. Random Marker Locations?
    By Stubbinz in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 5
    Last Post: Nov 15 2010, 19:31
  3. Making objectives spawn in random locations
    By muttly in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 3
    Last Post: Sep 14 2010, 19:36
  4. It just hovers in random locations...
    By Kocrachon in forum ARMA - MISSION EDITING & SCRIPTING
    Replies: 6
    Last Post: Dec 1 2007, 23:48
  5. Random locations?
    By Zak3056 in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 4
    Last Post: Mar 14 2002, 06:08

Posting Permissions

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