Results 1 to 3 of 3

Thread: how can i set the height of game logic buildings?

  1. #1

    how can i set the height of game logic buildings?

    ive been making a map, placing buildings using the game logic e.g "myBuilding = "Land_Hlidac_Budka_EP1" createVehicle position this; deleteVehicle this;" and ive also been using the set height for basic objects under Empty, using the code this setPos "[getPos this select 0, getPos this select 1,<height>];" and that has also been working fine for those objects, however i cannot get the set height code with the game logic buildings, i want to be able to set the height of buildings placed under game logic but do not know how to do it, or even if its possible.

  2. #2
    CWR² Developer Jakerod's Avatar
    Join Date
    Jul 29 2002
    Location
    Chicago, IL, USA
    Posts
    4,058
    This question is probably better off being asked in the Mission Editing & Scripting forum section. This forum section deals more with using Visitor and modifying .pew files and .wrps and not as much with the mission editor.

    To answer your question though, I think this will work if you put it in the gamelogic's initialization field:
    Code:
    this setPos [getPos this select 0, getPos this select 1, 27];
    That last number, 27, is how high it is above the ground in meters. In this case it is 27 meters.

  3. #3
    Private First Class
    Join Date
    Aug 16 2012
    Posts
    18
    Author of the Thread
    ive tried the code, and it works for items that i have placed under non playable>Empty however when i use game logic to place an object and add that code into the init, it dosent effect the game logics height?

Similar Threads

  1. Chopper set Height
    By Funkman in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 2
    Last Post: Jun 29 2011, 04:22
  2. set height of trigger
    By Lightspeed_aust in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 10
    Last Post: Feb 14 2011, 00:47
  3. set height
    By hollow point in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 1
    Last Post: Dec 16 2009, 10:25
  4. Height error with getpos being on buildings
    By rrores in forum ARMA - MISSION EDITING & SCRIPTING
    Replies: 2
    Last Post: Dec 10 2007, 16:32
  5. Trying to set height
    By Deus Ex in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 13
    Last Post: Apr 2 2003, 20:35

Posting Permissions

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