Home   Help Search Login Register  

Author Topic: Can't get Airwolf to fly!  (Read 5013 times)

0 Members and 1 Guest are viewing this topic.

Offline Danakin1

  • Members
  • *
Can't get Airwolf to fly!
« on: 09 Jun 2008, 02:06:27 »
OK, so I'm writing a script for pilot to get into Airwolf and fly without using triggers.
So far I've gotten pilot to get into Airwolf and start the engine.  But I can't get the coppter to take off.
I typed in a script, airwolf flyInHeight 300, but she won't lift off. 
She sort of lifts off the ground about an 1" and then just hovers...  Any suggestions?
Also, I used the script to get pilot into airwolf, pilot moveInDriver.  This works, but no animation.  Pilot just magically appears in driver seat.  Any suggestions on a better command?
Last, Is there any lists of scripts for the AirWolf mod.  Like how to write in the scrip to go into full combat mode, how to get landing gear to rise, and stuff like that?

Offline Gcfungus

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #1 on: 09 Jun 2008, 08:51:03 »
I can't help you with the taking off stuff, but I can try with the rest.

Rather than using moveindriver, could you consider using:
Code: [Select]
aP assignasdriver airwolfand
Code: [Select]
aP ordergetin true
For full combat mode, you could consider using:
Setcombatmode
Setbehaviour

As for the landing gear, I don't think it's possible. There is an action called land gear, but this only works for a player controlled plane.

Hope this helps.
-=GC=-Fungus1999
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline schuler

  • Contributing Member
  • **
Re: Can't get Airwolf to fly!
« Reply #2 on: 09 Jun 2008, 12:19:35 »
Danakin1 , please dont repost a thread
or topic will be removed please post about Airwolf in your last topic  ;)
cheers schuler
@Gcfungus please repost your reply in the original post / thread .... if we move it.
Semper Fi

Offline Danakin1

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #3 on: 09 Jun 2008, 17:58:02 »
Danakin1 , please dont repost a thread
or topic will be removed please post about Airwolf in your last topic  ;)
cheers schuler
@Gcfungus please repost your reply in the original post / thread .... if we move it.

Not sure what this all means...  I'm new to this Forum thing.  I thought I could just post questions and hope to get answers.
Should I have just put "airwolf" or "airwolf mod question"?

Offline Danakin1

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #4 on: 09 Jun 2008, 22:50:59 »
As for the landing gear, I don't think it's possible. There is an action called land gear, but this only works for a player controlled plane.

Hope this helps.
-=GC=-Fungus1999
[/quote]
Could you tell me the action for the landing Gear?  That way I can give it a try.

Offline Gcfungus

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #5 on: 10 Jun 2008, 00:12:55 »
Syntax:
Code: [Select]
planename action ["LAND GEAR"]Though it should only work for player controlled planes.

*Information taken from here.*
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline schuler

  • Contributing Member
  • **
Re: Can't get Airwolf to fly!
« Reply #6 on: 10 Jun 2008, 06:15:47 »
Danakin1 sorry your ok  ;)
i didnt know that Airwolf was a mod? or the name of you heli ,,, was not clear to me
anyways you are ok  :yes:
@ Gcfungus keep up the good work,,,,, any answer can still help Danakin or someone else too! ;)
cheers schuler  :cool2:
Semper Fi

Offline Danakin1

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #7 on: 11 Jun 2008, 00:48:28 »
Syntax:
Code: [Select]
planename action ["LAND GEAR"]Though it should only work for player controlled planes.

*Information taken from here.*

GcFungus, thanks for the info.  I tried it out and you were right.  Didn't work.   :dry:
I did some research and I found some cool things. 
I found the commands to deploy the guns and rocket launcher, raise and lower helmet visor, and I think the landing gear.
In case you want them, hear they are:

awmfcmswitch = deploy weapons
awmvisor = raise or lower helmet visor
awmmaingear = raise or lower gears (i think) will have to wait till later to try.

All these are 1 or 0 commands... 

That's my contrabution for now. :D

Offline Danakin1

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #8 on: 11 Jun 2008, 17:50:27 »
Does anybody know what an AI block is or an ADDon that will allow to place these.

I'm trying to script Helicoptor movements, but I was told that this may not be possible, unless I use AI blocks for the unit or units to follow. :dunno:

Any suggestions?

Oh by the way, I found a new action code for airwolf...
The "awmmaingear" only activates the two back gears. 
To activate the front nose gear, this is the action code...  "awmnosgear".

Offline schuler

  • Contributing Member
  • **
Re: Can't get Airwolf to fly!
« Reply #9 on: 11 Jun 2008, 18:48:31 »
sadly not all addons are 100% and read reviews on them  :yes:
i would check for updates on the addon
you might be beating a dead horse here
cheers schuler
Semper Fi

Offline Danakin1

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #10 on: 12 Jun 2008, 22:10:56 »
So I finally got my bird to fly...  Had to change the pilot from "player" to "playable.

Now I'm trying to figure out how to make her land.  How do I create an H for the Heli to land and how to I make it invisible?

Offline Gcfungus

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #11 on: 12 Jun 2008, 23:44:48 »
This should be fairly simple (I'm hoping  :P). Use a getout or land waypoint, and simply use an invisible helipad (it's already built in - no need to make it invisible). Should do it, though helis and planes are always difficult to manipulate exactly.

-=GC=-Fungus1999
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline Danakin1

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #12 on: 13 Jun 2008, 00:00:44 »
 Use a getout or land waypoint, and simply use an invisible helipad (it's already built in - no need to make it invisible).
-=GC=-Fungus1999
[/quote]
Thanks Fungus...  I appreciate the help...

Is a regular H done the same way?  Is there still a way to make an invisible Heli pad..

Offline schuler

  • Contributing Member
  • **
Re: Can't get Airwolf to fly!
« Reply #13 on: 13 Jun 2008, 01:55:21 »
hi Danakin
the invisible Heli pad is there to help the heli land. the only difference is you down have to look at a big H pad on the ground or in a field.
Quote
though helis and planes are always difficult to manipulate exactly.
Gcfungus is spot on there. you might have to do some playing around to get things working right
Quote
Is there still a way to make an invisible Heli pad..
yes open up the editor like you are makeing a solider, click on empty , then objects , then scroll down , you will see it there. 
cheers schuler
Semper Fi

Offline Danakin1

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #14 on: 13 Jun 2008, 17:32:37 »
Sweet thanks...  I managed to get my first two minute cutscene created.  I'll be posting it on Youtube.  I'll update once it's posted. :clap:

Is there a way to create a camera and attach to vehicle?  Also I'm also trying to find an easier way of getting position cordinates to enter for the camera. :scratch:

Any suggestions?

Offline Gcfungus

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #15 on: 14 Jun 2008, 00:00:02 »
Attatching a vehicle to anything can be done. It's not technically attatching it to something, but you can do it with part of a script which would look like this:

Code: [Select]
//Set a counter
_counter1 = 0
//Start the loop
#loop1
//Set the target
_camera camsettarget aP
// Choose what you want as the position - you can play around with these
_camera camsetrelpos [0,-1,5]
//Make the change instant
_camera camcommit 0
@camcommitted _camera
//Add to the time and counter
~0.001
_counter1 = _counter1 + 0.001
//Check if the timer is up - you can change the number
?(_count1 < 5):goto "loop1"
//Other comments
//go here

*This should work*

Also, for finding a camera position, try using the camera.sqs simple put into your units init code:
Code: [Select]
this exec "camera.sqs"You may need to disable any other cutscenes, and you then have a camera which you can move and angle. Just press "control" and it will copy the co-ordinates of your current position. You can then paste them into your cutscene, and the camera will see what you see.

Hope this helps  :),
-=GC=-Fungus1999
« Last Edit: 14 Jun 2008, 00:02:48 by Gcfungus »
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline schuler

  • Contributing Member
  • **
Re: Can't get Airwolf to fly!
« Reply #16 on: 15 Jun 2008, 16:24:58 »
look here too, good info,,,,here
Semper Fi

Offline Gcfungus

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #17 on: 15 Jun 2008, 23:54:54 »
The link didn't work for me, you need to change it schuler.  :P
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline Danakin1

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #18 on: 16 Jun 2008, 18:27:07 »
Cool thanks for the info.

I just posted my first Cutscene on YouTube.  Here is the link...
 www.youtube.com/danakinobi

It's only a couple minutes, but it's my first attempt at scripting...

Offline Gcfungus

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #19 on: 16 Jun 2008, 19:12:26 »
I like it, scripts work, looks alright. Though you did get some vehicle chat  ??? and it was unrealistic, but good for a first try. You'll do even better, I'm sure.  :good:
-=GC=-Fungus1999
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline Danakin1

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #20 on: 16 Jun 2008, 22:02:40 »
I like it, scripts work, looks alright. Though you did get some vehicle chat  ??? and it was unrealistic, but good for a first try. You'll do even better, I'm sure.  :good:
-=GC=-Fungus1999

Thanks for the words of encouragement.  I didn't, at the time, know about the "enableradio false" thing.

I'll use that in my next script. :good:

Offline schuler

  • Contributing Member
  • **
Re: Can't get Airwolf to fly!
« Reply #21 on: 17 Jun 2008, 13:36:05 »
hey Danakin  ;)

Quote
I just posted my first Cutscene on YouTube.

i can see the landing gear thingo,
but good job for a first cut,
but you must remember sadly not all addons are 100%
T
Quote
hanks for the words of encouragement.
i am sick of you posting you will be banded  :D :D :D ;) joke,,,, cheers schuler take care and have fun mate!  :D
Semper Fi

Offline Danakin1

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #22 on: 19 Jun 2008, 15:16:56 »
I have a question regarding the helicotper's ablility to Pitch and roll.
Is this considered a new topic? or should I continue with this one. ???

Also Gfungus wrote a script earlier regarding getting camera to watch or stay on vehicle as it moves.  Should the "/" be replaced by ";"...?

Offline Gcfungus

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #23 on: 19 Jun 2008, 17:39:23 »
I don't think there'd be a problem with continuing this thread. You could rename the thread (is that possible  ???).
When I use the "/", it's used to show a comment. A comment is not read by the computer, but is for users to help them understand the script.
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline Danakin1

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #24 on: 21 Jun 2008, 18:33:04 »
Cool,
Here is an update!  I was bale to create my first looping script.  This was to allow for camera to follow Helicopter...   :D  Problem is, I can't turn the loop off for it to continue with the rest of the script.   :dunno:
I was hoping to set a timer or some sort of way for the loop to stop.  I tried the set counter thing, but it doesn't seem to be working right.
The idea is to continue with the loop for about 5 seconds then have it goto:"#done" or something like that. 
Any suggestions? ???

Offline Danakin1

  • Members
  • *
Re: Loops and Timers
« Reply #25 on: 24 Jun 2008, 16:24:32 »
So I got the loop part down.  I am able to get camera to follow chopper.
But now trying to turn off the Loop after say 15 or 20 seconds.
I searched around and found a CTR script to add to my loop, but it's not working.
Here is what I worte in the scrtip.
#loop
_cam="camera" camcreate [0,0,0]
_cam cameraeffect ["internal","back"]
_cam camsettarget lady1
_cam camsetpos [3907.60,2249.37,0.24]
_cam camcommit 0
~0.001
_ctr = _ctr + 1

? (_ctr == 15) : goto "done"

gotto #loop


Problem is that it keeps looping.  Does not stop after 15 seconds.
Any suggetions as to what I may be doing wrong?   :dunno:
I'm trying to avoid using triggers and just scrtip it.

Offline Gcfungus

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #26 on: 24 Jun 2008, 17:43:21 »
Try changing yours to this:
Code: [Select]
_cam="camera" camcreate [0,0,0]
_cam cameraeffect ["internal","back"]
_ctr = 0
#loop
_cam camsettarget lady1
_cam camsetrelpos [3907.60,2249.37,0.24]
_cam camcommit 0
~0.001
_ctr = _ctr + 1
?(_ctr > 15): goto "done"
gotto "loop"
#done
exit

Should work... Though you may need to play around with the timer numbers
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline dr. seltsam

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #27 on: 24 Jun 2008, 17:49:51 »
hi,

Code: [Select]

_offX=... whatever you want (in meter)
_offY=... whatever you want (in meter)
_offZ=... whatever you want (in meter)

_tDif=15

_cam="camera" camCreate [0,0,0]
_cam cameraEffect ["internal","back"]
_cam camSetTarget lady1
_cam camSetRelPos [_offX,_offY,_offZ]
_cam camCommit 0
_tMax=_time+_tDif
# loop
_cam camSetRelPos [_offX,_offY,_offZ]
_cam camCommit 0
~0.01
? _time < _tMax : goto "loop"

; i don't know, but you might want to destroy the camera here, or have more camera actions ???
; the destroy code is:
; _cam cameraEffect ["terminate","back"]
; camDestroy _cam


Don't create cameras permanently in a loop, cameraEffect and camSetTarget is enough to have it once before the loop. The value _time means the time that is running since script start. It is an default ofp script variable. Tell me, if all works fine for you...

 :)


Edit:

I forgot something. I updated the vehiclecam.sqs that is in the editordepot a bit. It now has circle-around-capability. In this demo mission here are these camscripts included. The script header will tell you how to use them...
 :cool2:  :cool2:
« Last Edit: 24 Jun 2008, 18:00:50 by dr. seltsam »

Offline Danakin1

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #28 on: 24 Jun 2008, 20:53:18 »
Cool...  Thanks for the help and info.  I'll give it a go and let you know.   :good:

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Can't get Airwolf to fly!
« Reply #29 on: 25 Jun 2008, 03:28:08 »
And emmmm goto was spelled wrong (gotto).    :yes:


Planck
I know a little about a lot, and a lot about a little.

Offline Danakin1

  • Members
  • *
Looping scrtip
« Reply #30 on: 25 Jun 2008, 16:35:26 »
So I tried out GCfungus and Dr. seltsem scripts.

fungus's script worked...     :good: script looped until the 15 seconds, although I had to add an extra zero at the end.  I thinks it's because of the .001 thing.  So 150 lasts longer.

I tried seltsem's script, but two things did not occur.  The loop did not stop and also, the camera did not follow the chopper.
Pretty much just created a new camera, but did not follow chopper and the loop did not end. 
I tried different variations and even moved some stuff around, but was not able to get seltsem's script to work.
 :dunno:

A side effect that occured with fungus's script, is that it follows the chopper, but there is a lot of bouncing around of the chopper...  Very turbulant.  Almost as if it is having a problem re-drawing the chopper.  The area around the chopper, the land scape, mountains, and other background stuff is fine.
But the target itself, the chopper or (lady) in my case, is very turbulant.  Almost looks like someone with a shaky hand is holding chopper and shaking it as it moves.

Any suggestions? ???

Offline Gcfungus

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #31 on: 25 Jun 2008, 17:41:51 »
Lol, to be honest I don't think you can really counter that. If you wanted a stable camera, you could try making the wait bigger, and use bigger distances, so it only re-adjusted itself every 5 seconds or so, and make it like 50m away or something.

Anyway, good luck. :)
-=GC=-Fungus1999
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline Danakin1

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #32 on: 25 Jun 2008, 17:46:52 »
"try making the wait bigger"

Are you refering to the .001 thing?

Offline dr. seltsam

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #33 on: 25 Jun 2008, 17:54:18 »
hmmpf...  :(

but it works for me. Here is the script in a test mission attached. For the shaking effect, i have no idea at the moment. I will try different versions with different time and code settings. Maybe i can improve it.

Offline Gcfungus

  • Members
  • *
Re: Can't get Airwolf to fly!
« Reply #34 on: 25 Jun 2008, 22:00:06 »
Yea, a wait is defined using a '~'
Eg. ~5 = wait for 5 seconds.
 :good:
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton