Announcement

Collapse
No announcement yet.

Tip - Capture Custom Unit Positions quickly

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tip - Capture Custom Unit Positions quickly

    hey guys,

    Here is a little trigger script you can use to capture a position YOU are at, copy it to your clipboard in windows, then you can paste in a text document add the scripting for setting the pos or posasl then paste it int he unit u need. a lot better than the old "place then preview" method.

    trigger:
    settings: repeatedly, radio alpha, bravo etc.
    on activation: mypos = getposasl player; hint (str mypos); copyToClipboard (str mypos);

    here's another..
    this one would capture your position and add it to the array. its cumulative. so you can run around getting a ton of positions and after your done, alt tab out and paste it..

    create a game logic unit on your map and add this in the init line..
    posarray = [];

    trigger settings same as above..
    activation settings: mypos = [(getposasl player)]; posarray = posarray + mypos; hint (str posarray); copyToClipboard (str posarray);
    Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity. - General George S. Patton.

  • #2
    Re: Tip - Capture Custom Unit Positions quickly

    This is very useful, I remember doing a module for it in ArmA1, except I used a dialog to output the array instead of the clipboard (wasn't available). Makes placing units a bit more 'personal', as well as quicker than both the 2D and 3D editor. If your placing on mass, and need to get around quickly, the following two code blocks can help (second one on a radio trigger, first one anywhere).

    Map Teleport
    Code:
    onmapsingleclick "player setpos _pos";
    And

    On Screen Teleport to Cursor
    Code:
    player setpos (screenToWorld [0.5,0.5])

    Comment

    Connect

    Collapse

    TeamSpeak 3 Server

    Collapse

    Advertisement

    Collapse

    Twitter Feed

    Collapse

    Working...
    X