Jump to content
Sign in to follow this  
MirindoR

placing units on roofs, etc

Recommended Posts

whats the script for placing units on roofs?

can i only put them at a certain height?

if thats it then whats the script to spawn a unit at a given height?

Share this post


Link to post
Share on other sites

i'm pretty sure that units start on roofs anyway but here's the code

this setPosATL [getPos this select 0, getPos this select 1, 15];

this set the unit at 15 metres, do not change the 0 or 1 if you want the unit to only go upwards.

use setPosASL for putting units above sea level. (hence the "S" instead of "T").

Edited by Militantsausage

Share this post


Link to post
Share on other sites

This setPos [getPos This select 0, getPos This select 1, (getPos This select 2)+3];this setUnitPos "UP"

3 is the height and this setUnitPos "UP" is optional

---------- Post added at 01:36 PM ---------- Previous post was at 01:35 PM ----------

lol faster than me :)

Share this post


Link to post
Share on other sites

Im not quite sure but the old OFP code still does the same, right?

Share this post


Link to post
Share on other sites

and how do i force units to sit, salute etc?

thx

it would be nice if the saluting could be done based on a trigger, so that a group of units all salute when unit1 goes in area1

Share this post


Link to post
Share on other sites
and how do i force units to sit, salute etc?

thx

it would be nice if the saluting could be done based on a trigger, so that a group of units all salute when unit1 goes in area1

i'm not so sure i think it's something like this

this action ["eject", plane_1];

i think, if i got it right, that it makes a soldier jump out of a C130.

You can replace "eject" with another action that was just an example, make sure you add quotation marks.

http://community.bistudio.com/wiki/Category:Scripting_Commands_ArmA2

that page has every scripting command in the game, and it tells you how to use them (for most of them anyway), helped me alot when i started scripting.

Edit

I found a list of all the actions

http://community.bistudio.com/wiki/Armed_Assault:_Actions_List

there you go.

Edited by Militantsausage

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×