Home   Help Search Login Register  

Author Topic: 3 Questions on Scripting and Positions  (Read 1395 times)

0 Members and 1 Guest are viewing this topic.

Offline SAS

  • Members
  • *
3 Questions on Scripting and Positions
« on: 04 Jul 2009, 19:49:38 »
Hi hoping that someone can help me with 3 small issues I have on the Utes map, at position 038018 there is an empty camp, at position 038017 there are 3 buildings I want to have 3 people in the 2nd building however when I place them they always end up on the roof, any ideas for getting them into one of the rooms?

Second issue is this I want a USMC Officer to be a captive in the old days I would just use the code
Code: [Select]
officer setCaptive true with officer as the name of the unit, however this doesn't work in ARMA2 for some reason

Third Issue is getting the 2 units to join me I used
Code: [Select]
[officer, minister] join  me; officer setCaptive false in Resistence and it worked but it fails in ARMA 2.

Any thoughts?

Offline JamesF1

  • Editors Depot Staff
  • *****
    • JamesBurgess.co.uk
Re: 3 Questions on Scripting and Positions
« Reply #1 on: 05 Jul 2009, 14:16:29 »
Both commands still have the same syntax as you described above.  Check your Arma2.rpt for any potential errors.

As for the roof issue, you'll have to use setPos to position them in-building.  E.g. (in the init. field):
Code: [Select]
this setPos [getPos this select 0, getPos this select 1, 3];
This will place the unit 3 units above the ground level.  You'll have to adjust this for each building/floor.