OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: monty67t on 10 Jun 2009, 07:55:00

Title: HALO Help
Post by: monty67t on 10 Jun 2009, 07:55:00
I could use a little help from you guys on something. I'm trying to create a mission where players can perform HALO jumps over and over even after they die and respawn. When placing the following in the units initialization he can perform a HALO jump, but only once.

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

Someone told me to try this:
Quote
Try it this way, create a init.sqf in the mission folder which contains this:
[] execVM "halo.sqf";

And put this into the halo.sqf
while {true} do {
waitUntil {!alive player};
_p = player;
waitUntil {alive player};
_p = player;
_p exec "ca\air2\halo\data\Scripts\HALO_getout.sqs";
};

For some reason its not working. Any help with this is greatly appreciated.

Thanks,
Monty
Title: Re: HALO Help
Post by: SharkDog on 10 Jun 2009, 11:27:15
ca\air2\halo\data\Scripts\HALO_getout.sqs

I think that's the problem.
Title: Re: HALO Help
Post by: JamesF1 on 10 Jun 2009, 15:48:33
In what way?  It helps if you give at least some reasoning to your statements.
Title: Re: HALO Help
Post by: monty67t on 10 Jun 2009, 19:00:12
ca\air2\halo\data\Scripts\HALO_getout.sqs

I think that's the problem.

Not trying to be rude, but that doesn't explain anything to me. Why do you think this is the problem?
Title: Re: HALO Help
Post by: loki72 on 10 Jun 2009, 19:02:14
here are some demo missions with HALO examples.. one is mapclick and the other is from a plane.

Beispiel #1: HALO-Absprung (v1.0)
http://cyborg11.cy.funpic.de/downloads/ArmA2/HALO-Absprung.utes.7z

Beispiel #2: HALO-Jump per Mapclick (v1.0)
http://cyborg11.cy.funpic.de/downloads/ArmA2/HALO-Absprung-Mapclick.utes.7z

source:
http://www.g-g-c.de/forum/showthread.php?p=107093
(top of page)

hope it helps

Title: Re: HALO Help
Post by: monty67t on 10 Jun 2009, 19:57:36
@Loki72
Thanks for posting those. I will take a look at them and report back my findings.

EDIT: I was able to find exactly what I needed in one of those sample missions. Thanks again for posting them Loki72!

For anyone else trying to figure out how to HALO over and over again, here's what works for me.

Use this script in your mission folder:
Code: [Select]
;
********************************************
; Script File for ArmA2
; Made by: Cyborg11
; Version: 1.0
; ********************************************

_unit = _this select 1;
;hint format ["%1",_unit];

_unit action ["eject",MV22];
[_unit] exec "ca\air2\halo\data\Scripts\HALO_getout.sqs";

Then on the aircraft your unit will be jumping from put the following in the initialization:

Code: [Select]
this addaction ["HALO","halojump.sqs"];
For this example, the name of my aircraft is MV22. If you change the name of the aircraft you will need to change it in the script as well.