United States Intelligence
Would you like to react to this message? Create an account in a few clicks or log in to continue.

ArmA 2: Scripting commands

2 posters

Go down

ArmA 2: Scripting commands Empty ArmA 2: Scripting commands

Post  DirTyDeeDs Wed Jun 03, 2009 3:45 pm

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
DirTyDeeDs
Uber Spammer Jedi
Uber Spammer Jedi

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

http://usi-team.xippy.org/

Back to top Go down

ArmA 2: Scripting commands Empty HALO

Post  DirTyDeeDs Sun Aug 23, 2009 4:05 am

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
DirTyDeeDs
Uber Spammer Jedi
Uber Spammer Jedi

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

http://usi-team.xippy.org/

Back to top Go down

ArmA 2: Scripting commands Empty Re: ArmA 2: Scripting commands

Post  Zombie Sun Aug 23, 2009 9:26 am

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
Zombie
Master Spammer
Master Spammer

Posts : 202
Join date : 2008-07-23
Age : 60
Location : Virginia

http://usi-team.xippy.org

Back to top Go down

ArmA 2: Scripting commands Empty Re: ArmA 2: Scripting commands

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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