Home   Help Search Login Register  

Author Topic: a problem  (Read 455 times)

0 Members and 1 Guest are viewing this topic.

moondogy

  • Guest
a problem
« on: 01 Nov 2003, 19:55:33 »
i have a little problem with my script (again).
i want the chopper ataches a buggy on a rope, and then in certain pint selected on map it drops the buggy down (in the air, about 300meters of height). the buggy the lands with its own parachute.
where the problem is ? the chopper doesnt drop the buggy! parachute opens but buggy is still atached on the heli!
I think i will solve this problem with knowing what is the position of click on the map => , tbug setpos [***(that i need to know from on map click), ***(and that too) , 90]
here are the scripts:

Quote

------------------------------------------------------------------------------------------------------
_car=tbug
_helo=tbhe;
_lz="lz00";
_helopos = getpos tbhe


onMapSingleClick {tbhe domove _pos; lz00 setmarkerpos _pos; leader tbhe sidechat "Moving"; variable1=true; onMapSingleClick {}}

#move

tbhe domove _pos
_helo setspeedmode "full"
_helo flyinheight 100

? (speed _helo > 10) : goto "sidechat"

goto "move"

#sidechat

@ unitready _helo

_helo sidechat "In position and droping the buggy!"
;//////////////////////////////////////////////////////////////////////////////////
tbug setpos [***, ***, 90]
;//////////////////////////////////////////////////////////////////////////////////
[] exec "heDROPANIbb.sqs"

exit

------------------------------------------------------------------------------------------------------

i hope you understand what i mean to ask you, cause my english is good NOT!

have a nice day/night!

Mr.BoDean

  • Guest
Re:a problem
« Reply #1 on: 01 Nov 2003, 20:43:09 »
Hi Moon,
   Ok, I mostly understand what you want to do. Do you wish to make the buggy drop zone flexible... according to the player's wishes...or will it be the same spot every time?
  I have used David Berka's helidrop scripts for carrying and paradropping vehicles. (available in Editor's Depot) It works well, though there is no visible rope/cable attaching the vehicle. However, the drop part occurs when you place a variable (  release1 = 1  ) in a trigger (or WP) signalling the script to drop the vehicle and produce the parachutes.
    So you might try using his script if you just want the vehicle to drop at the same area every time. Or why not use an addaction command for the pilot and make it be the release variable for the script?

  Notes: I used David B's heli4drop script for heavier vehicles ...gives you 4 chutes per vehicle. Also, you may want to adjust the height of chopper above vehicle, because it may cause crash for some vehicles.  ;)

moondogy

  • Guest
Re:a problem
« Reply #2 on: 01 Nov 2003, 22:05:33 »
yea i know that script, i use it to in that mission, mu somehow it doesnt work properly with that! bugy has 3 own parachutes and it look very nice!

the WP is everytime different