01-30-2002, 12:59 AM
Hello,
<BR>
<BR>so General has agreed that I can post here.
<BR>
<BR>I have the problem, that I cannot get the Chinook to fly, when created inside a script.
<BR>
<BR>Here´s the script:
<BR><--
<BR>; get player
<BR>_Player = _this select 0
<BR>; get coordinates of the player
<BR>_camx = getpos _Player select 0
<BR>_camy = getpos _Player select 1
<BR>_camz = getpos _Player select 2
<BR>; create a pilot near player
<BR>_pilot = "SoldierWPilot" camCreate [_camx-10,_camy,_camz]
<BR>; create heli near player
<BR>_heli = "CH47D" camCreate [_camx-10,_camy,_camz]
<BR>; get pilot in heli
<BR>_pilot MoveInDriver _heli
<BR>; start engine of the heli
<BR>_heli Action["ENGINE ON"]
<BR>; wait 10 seconds till engine is on full power
<BR>~10
<BR>; only for testing if all is working
<BR>DeleteVehicle _heli
<BR>? !(Getdammage man < 1) : CamDestroy _pilot;
<BR>Exit;
<BR>
<BR>
<BR>
<BR>So I have tested with _heli Action["hover"] and [_heli,0] SetWpPos [_camx-100,_camy] but nothing works. Also I have created the heli with _camz+1000 and _heli FlyInHight 100. But also don´t work.
<BR>
<BR>
<BR>Hope someone can help how I can get the heli to start and fly. Need this for Intro. Don´t want to use a normal unit for this, cause too much units than in map.
<BR>
<BR>Thanks and Greets
<BR>
<BR>Lobanak
<BR>
<BR>_________________
<BR>[root@rescue] # dd if=/dev/zero of=/dev/hda
<BR>25410671+0 records in
<BR>25410671+0 records out
<BR>[root@rescue] # ... f**k s**t !!! no backup made !!!<BR><BR><font size=-1>[ This Message was edited by: Lobanak on 2002-01-30 00:00 ]</font>
<BR>
<BR>so General has agreed that I can post here.
<BR>
<BR>I have the problem, that I cannot get the Chinook to fly, when created inside a script.
<BR>
<BR>Here´s the script:
<BR><--
<BR>; get player
<BR>_Player = _this select 0
<BR>; get coordinates of the player
<BR>_camx = getpos _Player select 0
<BR>_camy = getpos _Player select 1
<BR>_camz = getpos _Player select 2
<BR>; create a pilot near player
<BR>_pilot = "SoldierWPilot" camCreate [_camx-10,_camy,_camz]
<BR>; create heli near player
<BR>_heli = "CH47D" camCreate [_camx-10,_camy,_camz]
<BR>; get pilot in heli
<BR>_pilot MoveInDriver _heli
<BR>; start engine of the heli
<BR>_heli Action["ENGINE ON"]
<BR>; wait 10 seconds till engine is on full power
<BR>~10
<BR>; only for testing if all is working
<BR>DeleteVehicle _heli
<BR>? !(Getdammage man < 1) : CamDestroy _pilot;
<BR>Exit;
<BR>
<BR>
<BR>
<BR>So I have tested with _heli Action["hover"] and [_heli,0] SetWpPos [_camx-100,_camy] but nothing works. Also I have created the heli with _camz+1000 and _heli FlyInHight 100. But also don´t work.
<BR>
<BR>
<BR>Hope someone can help how I can get the heli to start and fly. Need this for Intro. Don´t want to use a normal unit for this, cause too much units than in map.
<BR>
<BR>Thanks and Greets
<BR>
<BR>Lobanak
<BR>
<BR>_________________
<BR>[root@rescue] # dd if=/dev/zero of=/dev/hda
<BR>25410671+0 records in
<BR>25410671+0 records out
<BR>[root@rescue] # ... f**k s**t !!! no backup made !!!<BR><BR><font size=-1>[ This Message was edited by: Lobanak on 2002-01-30 00:00 ]</font>
Take a piece of script, some units, a map and some triggers, put it in the editor, mix it and you get a great cooked mission