ArmA 2: Scripting commands

View previous topic View next topic Go down

ArmA 2: Scripting commands

Post  DirTyDeeDs on Wed Jun 03, 2009 4:45 am

ArmArmA 2: Scripting commands

Quote Maruk :
I uploaded the most recent comand reference to arma2.com until we have it on the Biki.
This is automatically generated ComRef so may not be perfect but I hope it will be useful already.

_________________


DirTyDeeDs
Uber Spammer Jedi
Uber Spammer Jedi

Posts: 802
Join date: 2008-07-25
Age: 41
Location: Live Free Or Die

View user profile http://usi-team.xippy.org/

Back to top Go down

HALO

Post  DirTyDeeDs on Sat Aug 22, 2009 5:05 pm

mostly for my reference
HALO

This is how you make your soldier start a mission doing a HALO jump. Put this line into all your group and there you have a whole squad making a jump. Thanks Bohemia Interactive for making awesome games. Continue with your good work!

Here is the code to make them do it and make sure you put it in the init and as I showed in the vid you can change in this case 5000 to 2000 and that will change how high up in the air you will start. Change it to your own likes and start the mission.
Code:

this setpos [getpos this select 0, getpos this select 1,(getpos this select 2) +5000]; this flyinheight 5000; this setvelocity [0,0,0]; [this] exec "ca\air2\halo\data\Scripts\HALO_init.sqs ";

_________________


DirTyDeeDs
Uber Spammer Jedi
Uber Spammer Jedi

Posts: 802
Join date: 2008-07-25
Age: 41
Location: Live Free Or Die

View user profile http://usi-team.xippy.org/

Back to top Go down

Re: ArmA 2: Scripting commands

Post  Zombie on Sat Aug 22, 2009 10:26 pm

what you put works well, but this code works better and wont generate errors:

Code:
[u1, 2000] exec "ca\air2\halo\data\Scripts\HALO_init.sqs"

where u1 is the unit name and 2000 is the starting altitude. This can be used in a separate script, if you put the code in a units initialization then use

Code:
[this, 2000] exec "ca\air2\halo\data\Scripts\HALO_init.sqs"

_________________

Zombie
Master Spammer
Master Spammer

Posts: 202
Join date: 2008-07-24
Age: 50
Location: Virginia

View user profile http://usi-team.xippy.org

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum