Home   Help Search Login Register  

Author Topic: Any experienced scripters out there??  (Read 1869 times)

0 Members and 1 Guest are viewing this topic.

CptBravo

  • Guest
Any experienced scripters out there??
« on: 03 Nov 2002, 12:11:06 »
Hi,

I have downloaded a halo script from here  and it works perfect!! Except for one little annoying detail .. as soon as the whole squad lands, they jump right back into the halo!! Unless I am the commander!! Anyway to make the unit under an AI leader move to next way point instead of getting back on halo??

Thanks for your help.
« Last Edit: 08 Nov 2002, 21:47:11 by CptBravo »

b0b

  • Guest
Re:Plzzz help with halo script!! :(
« Reply #1 on: 03 Nov 2002, 14:03:57 »
try giving each unit the command :
    unassignVehicle player

that should stop them getting back in.

CptBravo

  • Guest
Re:Plzzz help with halo script!! :(
« Reply #2 on: 03 Nov 2002, 19:22:34 »
Ughhhh I have tried and no luck! :(
What it does is it makes the Helo land and the tropps get off but they still get back on as soon as they are out!!
The 1st half of teh script is great , the jumping part. But plzzzzzzz someone tell me how to make them NOT get back on helo??

Thanks for the help


b0b

  • Guest
Re:Plzzz help with halo script!! :(
« Reply #3 on: 05 Nov 2002, 02:31:14 »
If u show me the script i may be able to help u better, but other and the unassign command i dont know what else u can do.

CptBravo

  • Guest
Re:Plzzz help with halo script!! :(
« Reply #4 on: 05 Nov 2002, 19:22:22 »
Hey b0b,

Thanks for your quick reply. Here is script with the mission which I downloaded from this site.

Please let me know how I can fix that annoying problem.

Thanks!!!

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Plzzz help with halo script!! :(
« Reply #5 on: 05 Nov 2002, 20:34:34 »
put this somewhere after the men eject, and your problem should go away:

"unassignvehicle _x" foreach (units (group player))
(units (group player)) ordergetin false
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

CptBravo

  • Guest
Re:Plzzz help with halo script!! :(
« Reply #6 on: 07 Nov 2002, 03:16:49 »
Hi,

Thanks for the response. Could you pllllease illustrate with an example. Or if its not toooo much trouble fix the example mission which I have downloaded from the site.

I have tried placing that line but I keep getting error msg about the getinfalse command.

Thank you again for the help.

CptBravo

  • Guest
Re:Any experienced scripters out there??
« Reply #7 on: 10 Nov 2002, 00:38:51 »
No reply yet??Very very dissapointing!

ohh well ..

b0b

  • Guest
Re:Any experienced scripters out there??
« Reply #8 on: 10 Nov 2002, 01:03:07 »
sorry for the delay i have been busy.  i have tryed editing the script and managed to get it to run with the extra commands in without causing an error msg, but the commands just seem to have no effect.  i dont usally define groups in my scripts so im not very good with the foreach command.

If ur only gonna use a few units like 8 or so it can be easier to just give them all names and there own unassignvehicle command in the script.

sorry i couldn't help more  
b0b

CptBravo

  • Guest
Re:Any experienced scripters out there??
« Reply #9 on: 10 Nov 2002, 23:13:41 »
Hey I appreciate you trying to help. WHat you suggested might be the only solution to the problem, name each unit sepeartly. Although I have to think someone must have a working Halo script!!

I did find another script by snyper I think, works great, only problem is .. half the team land on each other while jumping and end up have serious health problems! :(

Is it possible to delay each unit jumping by say 2 seconds so they wont crash into each other ?

Either way I do appreciate the help. Thanks.  

RaiN_MaN

  • Guest
Re:Any experienced scripters out there??
« Reply #10 on: 13 Nov 2002, 15:54:14 »
Hi

Maybe i can help you.

I made a mission with a halo drop some time ago getting the same problem as you now. Scripts around are good, but could be better. I took the best script i found and moded it until i got what i was looking for.

Check the script i attached, i made it using a HALO script from Duma as template. I made some heavy modifications to the original script makeing it much easier.

All you have to do is to copy the script into your mission folder and then put this line into the "init" field of the soldier(s) you want to halo:

[this] exec "halodrop.sqs"

The script will take care of all the rest. You dont' have to place choppers or writing coords. Just place your soldiers there where you wanna drop them. Remember that during the drop wind will move the soldiers so place them where they can land safely (not near shore or near enemy bases).

I used this script for a long time without problems of any kind. A 5 men drop was no problem, but i never tried more than 5 man at one time. If you try that plz drop me a line and let me know.

Have fun, good luck and let me know!  ;)

RaiN_MaN

  • Guest
Re:Any experienced scripters out there??
« Reply #11 on: 13 Nov 2002, 16:02:18 »
Oh, and of course don't place all your soldiers on one spot! Else they will crash into each other.
Place them near but not too near, leave something like 50 meters between soldier and soldier.
I myself left less then 50 meters between the soldiers and everything went fine, more than a dozen times!

However, let me know if something went's wrong!

abomb1508

  • Guest
Re:Any experienced scripters out there??
« Reply #12 on: 15 Nov 2002, 11:16:29 »
CptBravo, about six months ago i had your exact same problem. the script is fine, except for one thing. what you must do is keep the men out of the chopper. the way to do this is the command

"_x ordergetin = false" foreach units grp1

or something like that. put that at the very end of the script (when everyone's ejected, but before the word "exit") and the squad will magically forget the chopper ever existed and continue with the mission. if you want your men to get back in the chopper you must write somewhere later on

"_x ordergetin = true" foreach units grp1

preferably the last moment before they are supposed to get in the chopper.

just remember that where it says "grp1" you should write the name of the group ejecting.

good luck and happy hunting,

A-Bomb

frustrated 160th SOAR commander.