Home   Help Search Login Register  

Author Topic: para script  (Read 723 times)

0 Members and 1 Guest are viewing this topic.

Offline zip

  • Members
  • *
  • Zip mission maker of WW2ec team
para script
« on: 10 Jan 2004, 18:47:35 »
IÂ've have found this parascript... but it dosent seems like it works ?


_aunits = units L1
_i=0
_max=count _aunits

#here
(_aunits select_i) action ["eject",helo1]
unassignvehicle (_aunits select_i)
_i=_i+1
~1
?_max>_i:goto "here"

exit


"words wich isnt is bringed to action, isnt worth saying.."

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:para script
« Reply #1 on: 10 Jan 2004, 18:57:08 »
How do u execute it?

:beat: *Gets Shot* :beat:

Offline zip

  • Members
  • *
  • Zip mission maker of WW2ec team
Re:para script
« Reply #2 on: 10 Jan 2004, 18:58:57 »
by a trigger... but iam sure itÂ's wrong ...
"words wich isnt is bringed to action, isnt worth saying.."

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:para script
« Reply #3 on: 10 Jan 2004, 19:19:42 »
did u call ur units L1 and ur helo helo1 ?

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline zip

  • Members
  • *
  • Zip mission maker of WW2ec team
Re:para script
« Reply #4 on: 10 Jan 2004, 19:40:33 »
yes I did
"words wich isnt is bringed to action, isnt worth saying.."

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:para script
« Reply #5 on: 10 Jan 2004, 19:45:20 »
i got it - u got a type dere

2 missing spaces

(_aunits select_i) action ["eject",helo1]
unassignvehicle (_aunits select_i)

shud b

(_aunits select _i) action ["eject",helo1]
unassignvehicle (_aunits select _i)

;)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline zip

  • Members
  • *
  • Zip mission maker of WW2ec team
Re:para script
« Reply #6 on: 10 Jan 2004, 19:47:36 »
could you please post the final script then ? :P
"words wich isnt is bringed to action, isnt worth saying.."

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:para script
« Reply #7 on: 10 Jan 2004, 19:49:16 »
Code: [Select]
_aunits = units L1
_i=0
_max=count _aunits

#here
(_aunits select _i) action ["eject",helo1]
unassignvehicle (_aunits select _i)
_i=_i+1
~1
?_max>_i:goto "here"

exit

its dat hard ???  :o  :P  ::)

all ya need is spaces between da select n _i

:P

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline zip

  • Members
  • *
  • Zip mission maker of WW2ec team
Re:para script
« Reply #8 on: 10 Jan 2004, 19:51:13 »
call me dumb but I dont get the point :S
"words wich isnt is bringed to action, isnt worth saying.."

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:para script
« Reply #9 on: 10 Jan 2004, 19:54:30 »
dumb ::)

did u try it ? nd it doesnt work ?

im sry i cant but ma OFP aint working (but im workin on dat - reistalls usualy solve probs ;D)

as 4 da point

its just dat da scripter (its not ya i guess) made dat script in very st00pid way (so dont try using it 2ice in da same mision) and forgot couple o spaces

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:para script
« Reply #10 on: 10 Jan 2004, 20:46:16 »
zip, read Johan Gustavssons Scripting Tute in the ed depot(www.ofpec.com/editors).

:beat: *Gets Shot* :beat:

Offline zip

  • Members
  • *
  • Zip mission maker of WW2ec team
Re:para script
« Reply #11 on: 10 Jan 2004, 20:52:18 »
I would be more pleased for a soulution of my problem ;)
"words wich isnt is bringed to action, isnt worth saying.."

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:para script
« Reply #12 on: 10 Jan 2004, 21:42:48 »
The way I read this whole topic..........your problem was already solved.

Read it all again.


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

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:para script
« Reply #13 on: 10 Jan 2004, 23:13:29 »
L1 is the name of the group you want to para
helo1 is the name of the chopper where the para will be done

If you have named the group to L1 and the chopper to helo1 the corrected script by LCD will work.

You execute it with [] exec "scriptname.sqs"

Check your trigger. Make sure it goes off. Type in the 'on activation' field hint "para trig goes off" to make sure.
Not all is lost.