Results 1 to 3 of 3

Thread: Troubles with SetPos command

  1. #1

    Troubles with SetPos command

    OFP 1.96 + editorupdate102.pbo
    Hi!
    I've got some troubles with SetPos command. Let me try to describe the problem:
    1) Create some object using CreateVehicle command.
    Code:
    TempObject = "AAR615" CreateVehicle [((getpos player select 0)+40), (getpos player select 1), (getpos player select 2)];
    2) Get coordinates of your object and put this object into the same coordinates.
    Code:
    ObjectX = getpos TempObject select 0;
    ObjectY = getpos TempObject select 1;
    ObjectZ = getpos TempObject select 2;
    
    TempObject setPos [ObjectX, ObjectY, ObjectZ];
    You'll see the object's shift (despite the fact that the object was placed in the same coordinates)!
    This problem appears when you create an object with CreateVehicle command only. I don't need this shifting, plz help me.

    ---------- Post added at 16:43 ---------- Previous post was at 16:42 ----------

    The mission example (use player's menu in the game to create and place the building): https://rapidshare.com/files/2804175564/SetPosTest.rar

  2. #2
    This is a problem with placing static objects. See this topic
    Last edited by Faguss; Jul 6 2012 at 15:31.
    -------------

  3. #3

    Cool

    Faguss thank you very much! You saved my project.

Similar Threads

  1. High Command Complex Command - How to add more options/command
    By Mr_Centipede in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 0
    Last Post: Sep 23 2010, 12:26
  2. SetFriend correct use & setpos alike command for..
    By Jklv in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 0
    Last Post: Jul 7 2008, 04:35
  3. how to move unit with setpos command....
    By namreg in forum ARMA - MISSION EDITING & SCRIPTING
    Replies: 3
    Last Post: Jun 4 2008, 18:22
  4. setpos
    By Redskin53 in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 4
    Last Post: Oct 3 2004, 22:31
  5. Setpos troubles
    By OmniMax in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 4
    Last Post: Apr 7 2003, 23:31

Posting Permissions

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