Home   Help Search Login Register  

Author Topic: C130 Rolling Deployment  (Read 3266 times)

0 Members and 1 Guest are viewing this topic.

Offline CAS_Daniel

  • Members
  • *
  • Rifleman
Re:C130 Rolling Deployment
« Reply #15 on: 26 Oct 2005, 16:14:50 »
The AI doesn't put the gear up automatically, but I really just need the right syntax that makes the AI do the "Gear Down" action menu option, as this over rides the gear up animations.
Romeo 2.5 UK-based Light Infantry Platoon
forums.romeo25.com/

Offline Pilot

  • Contributing Member
  • **
Re:C130 Rolling Deployment
« Reply #16 on: 26 Oct 2005, 17:14:12 »
Ok, it's been a while since I have done any editing, so I am a bit unsure of some things ;)

For a list of actions, look here

The proper sysntax is:
PlaneName action ["Land gear"]

Although I'm not too sure if that works with AI controlled aircraft.  Give it a try and let me know.

-Pilot

Offline CAS_Daniel

  • Members
  • *
  • Rifleman
Re:C130 Rolling Deployment
« Reply #17 on: 26 Oct 2005, 18:13:45 »
Hmm, couldn't find the right action name, but i've solved that problem another way now. Either that, or the AI has trouble with it like you said.

Thanks anyway, I always needed to know the right syntax for that.  ;)

EDIT:
The plane keeps exploding whenever it comes into land, no matter what its speed or descent rate. I've found the problem too, it's the landing gear.

When I get the plane to put it's own gear down using the geardown.sqs script, it explodes upon contact with the ground. If I manually select Gear Down, it always survives the landing.

Any ideas?  :-\
« Last Edit: 26 Oct 2005, 18:33:20 by CAS_Daniel »
Romeo 2.5 UK-based Light Infantry Platoon
forums.romeo25.com/

Offline Pilot

  • Contributing Member
  • **
Re:C130 Rolling Deployment
« Reply #18 on: 28 Oct 2005, 01:59:51 »
EDIT:
When you say manually, does that mean when you are the pilot?
« Last Edit: 28 Oct 2005, 02:00:42 by Pilot »

Offline CAS_Daniel

  • Members
  • *
  • Rifleman
Re:C130 Rolling Deployment
« Reply #19 on: 29 Oct 2005, 17:15:27 »
Yeah.  :)
Romeo 2.5 UK-based Light Infantry Platoon
forums.romeo25.com/

Offline Pilot

  • Contributing Member
  • **
Re:C130 Rolling Deployment
« Reply #20 on: 29 Oct 2005, 23:57:14 »
Ok, the AI is automatically putting the gear up.  What you are going to have to do is play the gear down animation every second or so.  I posted an example of what you could do, here it is:
Code: [Select]
_plane = _this select 0

#Loop
?planeDone: exit
[_plane] exec "\HWK_c130\script\geardown.sqs"
~1
goto "Loop"
Simply call the script like this:
[NameOfPlane] exec "NameOfScript.sqs"

The script automatically lowers the gear every second.  If the gear is already down, then it does nothing.  Try it and tell me what you think.

-Pilot

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:C130 Rolling Deployment
« Reply #21 on: 15 Nov 2005, 01:23:21 »
another trick, although it looks kind of bad if you are using it when you can see the pilot, is to temporarily kill the pilot. Then you activate the gear down, and use the setVelocity script of Pilot's.

to kill the pilot:

if your plane is named myPlane then
Code: [Select]
myPlaned setDammage 1
NOTE: The 'd' on the end is not a typo.  ;)
any 'd' added onto the end of a pre-crewed (i.e. you didn't manually add the crew) vehicle is the driver of that vehicle, 'g' is gunner and 'c' (IIRC) is commander. I dont think there's one for cargo :P
« Last Edit: 15 Nov 2005, 01:25:17 by Tyger »
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08