Home   Help Search Login Register  

Author Topic: extration troubles  (Read 1146 times)

0 Members and 1 Guest are viewing this topic.

Commando

  • Guest
extration troubles
« on: 19 Mar 2005, 01:09:32 »
I got a blackhawk that flies to a location and picks up a squad of players and a.i..
and the thing is sometimes when the LZ gets hot and bullets and a rocket or two makes some fly byes and hit the blackhawk wich doesn't always get destroyed, it sometimes flips over up side down or it gets little dammaged and the pilots have even jumped out...
so the squad of players and a.i loons + the pilots gets stuck firing back and just not getting anywhere with the blackhawk because the pilots have jumped out and are standing next to it taking a coffé break or something  :P

what can i do to get rid of that bug?
observe it doesn't always occure just sometimes   :-X
there is a secondary extraction route off the island but it only gets activated when the chopper gets destroyed, but if i destroy chopper .. some stupid a.i loons standing to close get killed and they all kill me  ::)

so is there anyway to make the chopper blow up when its turned up side down or the pilots have jumped out? yeah prefarably with a 15 sec. timer so that players that are inside the cargo have a chance to get away before the chopper selfdestructs?  ;D

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:extration troubles
« Reply #1 on: 19 Mar 2005, 01:13:46 »
Syntax not guaranteed

if (driver chopper == objnull) && (gunner chopper == objnull) : chopper setdammage 1

:beat: *Gets Shot* :beat:

Offline Pilot

  • Contributing Member
  • **
Re:extration troubles
« Reply #2 on: 19 Mar 2005, 01:18:34 »
Can't you just use a canmove command?

!canmove heli
or
not canmove heli

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:extration troubles
« Reply #3 on: 19 Mar 2005, 03:42:30 »
Use Vektorboson's Tail Rotor Failure script. You could call it from another script which you could run once you got into the chopper. Have a random chance of calling the Tail Rotor Failure script from the first script.
I'll give you an example if you want. I'll have to check my other computer first.

Here's the link to the script.
http://www.ofpec.com/editors/resource_view.php?id=328
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Pr0ph3t

  • Members
  • *
Re:extration troubles
« Reply #4 on: 19 Mar 2005, 04:24:43 »
Also note:
If you want to make a bigger explosion:

this setdammage 1; this setdammage 0; this setdammage 1; (etc)


Commando

  • Guest
Re:extration troubles
« Reply #5 on: 19 Mar 2005, 11:37:19 »
thx for replies guys, wil try your ways and post if it worked  :)

Commando

  • Guest
Re:extration troubles
« Reply #6 on: 19 Mar 2005, 11:46:07 »
btw dmakatra where do i type your stuff in? in a script or in the activation line of a trigge ror a initfield?
i tried putting the stuff in a trigger but got errors about bool and && something  :P
« Last Edit: 19 Mar 2005, 11:59:52 by Commando »

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:extration troubles
« Reply #7 on: 19 Mar 2005, 11:48:44 »
in a script, but you can do it in a trigger to:

cond: (driver chopper == objnull) && (gunner chopper == objnull)
on act: chopper setdammage 1

:beat: *Gets Shot* :beat:

EDIT: Hey, he spelled my name right! Hoo-ah! ;D
« Last Edit: 19 Mar 2005, 11:52:20 by dmakatra »

Commando

  • Guest
Re:extration troubles
« Reply #8 on: 19 Mar 2005, 12:04:24 »
ohh like that  :D i'll try again  ;)
well this time no error messages, will see if it works later when i'll play the mission with some friends in lan.
« Last Edit: 19 Mar 2005, 12:13:50 by Commando »