Welcome to Tactical Gamer

+ Reply to Thread
Results 1 to 8 of 8
Discussion: ArmA - Development / ArmA - Mission Development - Teleporting scripts - I am interested in scripts that enables teleport of player or group. I know that
  1. #1


    J.B.'s Avatar

    Join Date
    May 2011
    Location
    Randers, Denmark.
    Age
    21
    Posts
    272

    Teleporting scripts

    I am interested in scripts that enables teleport of player or group. I know that Blackpython used a flagpole system similar to the one in Domination in ACE artillery course to travel to a predetermined destination. I also know of the point-'n-click teleport system from the CASarty trainer on Bravo. Any info on either and help with implementing them would be greatly appreciated.

  2.  
  3. #2

    Charles Darwin's Avatar

    Join Date
    Sep 2008
    Posts
    607

    Re: Teleporting scripts

    I should still have the script used in the CAS trainer, Ill post it here when i can

  4.  
  5. #3


    J.B.'s Avatar

    Join Date
    May 2011
    Location
    Randers, Denmark.
    Age
    21
    Posts
    272

    Re: Teleporting scripts

    Much appreciated!

  6.  

     
  7. #4

    Charles Darwin's Avatar

    Join Date
    Sep 2008
    Posts
    607

    Re: Teleporting scripts

    if you promise to help me test something on my personal server Ill even modify it to suit your specific needs

  8.  
  9. #5


    J.B.'s Avatar

    Join Date
    May 2011
    Location
    Randers, Denmark.
    Age
    21
    Posts
    272

    Re: Teleporting scripts

    Last time I tested something on a personal server Sector blew me sky high with IEDs. Can I trust you?!
    In all seriousness I am at the barracks till late friday evening, so I won't be on till then and I have to use the time to finish the Nav. Course lesson plan and mission. I think you'd be better off finding some one else to blow up.

    But the most optimal would be if you could make so an instructor could teleport the student around.

  10.  
  11. #6

    Charles Darwin's Avatar

    Join Date
    Sep 2008
    Posts
    607

    Re: Teleporting scripts

    lol ok, np I was going to modify it anyways since theyre generally fairly simple

    i figure a simple add action to every unit available only to the instructor, that will allow you transport the student via map? I might be able to do something with a list of all players but that would require a dialog and im not able to get one done before the next class so as long you having to walk next to the person and transport them will be ok..and then Ill leave the ability for them to transport themselves as well? or ONLY you being able to transport?

  12.  

     
  13. #7


    J.B.'s Avatar

    Join Date
    May 2011
    Location
    Randers, Denmark.
    Age
    21
    Posts
    272

    Re: Teleporting scripts

    Only the instructor should be able to teleport himself and others around or else the students could cheat on the final test. If you could make it that way for now (I plan to use it for the Nav. Course Saturday) and post the instructions to implement it right that would be best, as I can't say when I'm going to have net again.

  14.  
  15. #8

    Charles Darwin's Avatar

    Join Date
    Sep 2008
    Posts
    607

    Re: Teleporting scripts

    Code:
    init
    
    {
      _unit = _x;
      if("instruct" == vehiclevarname player) then {_x addAction ["Teleport", "teleport_enable_once.sqf"]};
      }foreach allUnits;
    Code:
    teleport_enable_once
    _stud = _this select 0;
    _gen = _this select 1;
    _id = _this select 2;
    
    _stud removeAction _id;
    
    _cancel_action = if("instruct" == vehiclevarname player) then {_gen addAction ["Cancel teleport", "teleport_cancel.sqf"];};
    
    onmapsingleclick format["%2 setpos _pos; onmapsingleclick ''; %2 removeAction %1; %2 addAction [""Teleport"", ""teleport_enable_once.sqf""]; true;", _cancel_action, _stud];
    
    player sidechat format["Click on map to teleport there, or use cancel teleport action"];
    Code:
    teleport_cancel
    
    _stud = _this select 0;
    _gen = _this select 1;
    _id = _this select 2;
    
    _stud removeAction _id;
    if("instruct" == vehiclevarname player) then {_gen addAction ["Teleport", "teleport_enable_once.sqf"];};
    onmapsingleclick '';
    
    player sidechat format["Teleport canceled"];

    all you should have to do is name the unit the instructor wiill be as instruct

  16.  

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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


  
 

Back to top