OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: SAS on 04 Jul 2009, 19:49:38

Title: 3 Questions on Scripting and Positions
Post by: SAS 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?
Title: Re: 3 Questions on Scripting and Positions
Post by: JamesF1 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 (http://community.bistudio.com/wiki/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.