Jump to content
Sign in to follow this  
DemonFire

Same problem with HALO... again...

Recommended Posts

This is the same post from the older topic on this subject:

Hey all hate to go back to square 1 but I have a few problems... I can't get the code to work. This is what I've done:

I copy and pasted this code into the initialization for the unit:

[this] exec "ca\air2\halo\data\Scripts\HALO_getout.sqs

After this didn't work then I stuck the unit in a plane and made that plane go across a waypoint with the following act script: (unit is called guy)

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

This didn't work becuase the game couldn't find the script (and I have no idea how to install scripts with the STEAM version of the game :confused:)

Lastly, I changed the trigger act script to this:

daplane lock false;
daguy action [ "eject", daplane];
daguy setvelocity [0,0,0];
[daguy] exec "ca\air2\halo\data\Scripts\HALO_getout.sqs";

Like the first try this just didn't work at all.

This way of coding is really new to me (I'm a java guy). If someone could help me out with this I'd really appreciate it. All I want to do is to get myself and a squad of AI to HALO jump out of a plane...

Also, I know this is a really old post. So if no one posts back after a few days I'll create a new topic. (although I know that the mods here go insane when that happens :p)

What I'm trying to do is to have me and a large squad of AIs HALO jump out of an airplane. Thanks for looking and happy new years :D

Share this post


Link to post
Share on other sites

Are you sure your "helo_init.sqs" attempt was failing because it couldn't find the script? It exists in air2.pbo, but requires two parameters. This is the script:

_HALOunit = _this select 0
_HALOunitaltitude = _this select 1

;// Set the unit pos in the air
_HALOunit setpos [getpos _HALOunit select 0, getpos _HALOunit select 1, _HALOunitaltitude]

;// Run player or AI script
~0.05
? (_HALOunit == player) : playsound "BIS_HALO_Flapping"; setAperture 0.05; setAperture -1; _HALOunit switchMove "para_pilot"; [_HALOunit] exec "ca\air2\halo\data\Scripts\HALO.sqs"
? ! (isplayer _HALOunit) : [_HALOunit] exec "ca\air2\halo\data\Scripts\HALO_AI.sqs"

so perhaps trying calling it with [unitname, 1000] exec ... and see what happens.

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  

×