Home   Help Search Login Register  

Author Topic: halo script prob  (Read 1118 times)

0 Members and 1 Guest are viewing this topic.

Offline smileynick

  • Members
  • *
  • i am smiley nick
halo script prob
« on: 26 Sep 2004, 18:28:38 »
I am having some probs with some scripting, i know the answer but its not working if that makes sence, this is my prob.



_player=_this Select 0
?!(IsNull _player):Goto "Init"
Exit

#Init
HALO=false
DROP=false

#Start
~2
@(Getpos _player Select 2)>=200 OR !(ALive _player)
?(!Alive _player):Goto "End"
_vcl=Vehicle _player
?(_player==Driver _vcl):_action=_vcl Addaction ["Jump!","HaloDrop.sqs"]
HALO=true
Goto "Wait"

#Wait
@(Getpos _vcl Select 2)<200 OR !(Canmove _vcl) OR (DROP)
?!(Canmove _vcl) OR (DROP):Goto "end"
HALO=false
_vcl RemoveAction _action
Goto "Start"


#End
HALO=false
Exit


the prob is that the jump action only workes when the player is the driver, now i would like the jump action to work when the player is in cargo (passenger) i have put Cargo in instead of driver/gunner/commander but it dont seem to work, does anyone have any ideas? its really anoying me , because whats the use of a halo drop if the players in the back cant bloddy jump! ahrrrrr  

i am useing chris script editor


Chears

Smiley
« Last Edit: 27 Sep 2004, 16:41:20 by smileynick »
ng

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Small Problem
« Reply #1 on: 26 Sep 2004, 19:05:35 »
AFAIK there is no command cargo.

Use an in command instead.
« Last Edit: 26 Sep 2004, 21:29:59 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Small Problem
« Reply #2 on: 26 Sep 2004, 19:27:34 »
get a list of the units in the vehicle with
Quote
crew vehicle
Operand types:
    vehicle: Object
Type of returned value:
    Array
Description:
    All units mounted in given vehicle. If vehicle is not vehicle, but person, list containing only person is returned.

Example:
    crew vehicle player
the above and then use && !driver to eliminate the pilot  ;)
Not all is lost.

Offline smileynick

  • Members
  • *
  • i am smiley nick
Re:Small Problem
« Reply #3 on: 26 Sep 2004, 19:42:01 »
ok that helps, but im still unsure what to type in the script, im fairley new to this but im learning as im going. would it be possibe to show me a example of what you mean in the script i have shown?

i have a chopper called plane1, and i have the men who are named W1-8.

thankyou for your help


Smiley
ng

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Small Problem
« Reply #4 on: 26 Sep 2004, 22:22:42 »
I wish i could help you a halo script that sounds so cool can u post it in the forum when ur done

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Small Problem
« Reply #5 on: 26 Sep 2004, 22:35:01 »
I wish i could help you a halo script that sounds so cool can u post it in the forum when ur done

There are a bunch of other HALO scripts in the ed depot, so you don't have to wait. ;)
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Small Problem
« Reply #6 on: 26 Sep 2004, 23:30:40 »
Scripts don't get posted in the forum when they are done, they join the several hundred scripts already in the Editors Depot.   ;)


You could use

? _player in _vcl

instead of

?(_player==Driver _vcl)
Plenty of reviewed ArmA missions for you to play

Offline smileynick

  • Members
  • *
  • i am smiley nick
Re:Small Problem
« Reply #7 on: 27 Sep 2004, 00:10:26 »
well that works :D ty, but i now have a new prob, typicall!! when in MP the other memebrs in my group say i am invisible and when they shoot me i am invincible!!, strange as it may seem but its really weird, anyone help? i casn shot bullets and they can see them and when i throw nades they can see them leaving my body. but as a person im invisible!!


smiley
« Last Edit: 27 Sep 2004, 17:12:58 by smileynick »
ng