Home   Help Search Login Register  

Author Topic: Arma editor  (Read 1818 times)

0 Members and 1 Guest are viewing this topic.

Offline JimiScott

  • Members
  • *
Arma editor
« on: 27 Nov 2007, 22:03:54 »
Hi I need help with the mission editor.  Could someone please tell me how to start my mission that i created, were my squad is already onboard a chopper for example of any vehicle for that matter if that makes sense (without the chopper or vehicle actually being part of my squad).
Thanks.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: Arma editor
« Reply #1 on: 27 Nov 2007, 22:27:37 »
u want da squad 2 start inside a bird ? :D

wat u do is name da choper (lets say LCDFly)

and den write da next code inside da init of 1 squad member

{_x moveincargo LCDFly} foreach units group this

and tada uve got it :D

LCD OUT

[edit] BTW i forgot...

WELCOME 2 OFPEC & DA SEWERS O EDITING M8
« Last Edit: 27 Nov 2007, 22:29:37 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline JimiScott

  • Members
  • *
Re: Arma editor
« Reply #2 on: 27 Nov 2007, 23:05:13 »
hi i dont know if i am doin anythin wrong but wenever i enter the {_x moveincargo LCDFly} code in the initialization box on my squad leader (me) it comes up with a box saying "Type code, expected nothing".  basically it wont let me do it. and i have named the chopper LCDFly.
Thnaks.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: Arma editor
« Reply #3 on: 27 Nov 2007, 23:20:46 »
it doesnt have 2 b LCDFly ;) u can use ny name as u long as u change da second 1 also...

also u need 2 have dis part :

foreach units group this

after dis

{_x moveincargo LCDFly}

dats all i think... :D

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

Offline JimiScott

  • Members
  • *
Re: Arma editor
« Reply #4 on: 28 Nov 2007, 00:18:03 »
thanks man, but i must be gettin summit wrong coz it aint workin for me thanks neway

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: Arma editor
« Reply #5 on: 28 Nov 2007, 00:30:47 »
aha... but dere is somin wrong... can u try puting da same code in other units init ? or mebe even post an example of da m,ision and ill take a look 2 see wats wrong ?

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

Offline JimiScott

  • Members
  • *
Re: Arma editor
« Reply #6 on: 28 Nov 2007, 00:45:50 »
ok i hate to be an arsehole, but heress the situation.  I have a group of guys of whom i am the squad leader.  the idea is, is that at the start of the mission my squad starts in a chopper (which is not part of the squad) which then drops us off.  From what i understand, i need to put "LCDFly" (i kno it doesnt have to be that) in the "name" box in the chopper.  And in the squad leaders initialization box put: {_x moveincargo LCDFly} 

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: Arma editor
« Reply #7 on: 28 Nov 2007, 00:51:30 »
ahh ok... heres da bug... in da init box u need 2 put

Code: [Select]
{_x moveincargo LCDFly} foreach units group this
da whole code... w/ da parts outside of da barakets :D  :D

den it shud work  :yes:  :cool2:

and LCDFly is great name u shud know dat :D it got LCD init  ;)  :good:

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

Offline JimiScott

  • Members
  • *
Re: Arma editor
« Reply #8 on: 28 Nov 2007, 01:04:41 »
thanks very much pal , thanks for ur time

Offline Davies1

  • Members
  • *
  • Bugger this for a game of soldiers!
Re: Arma editor
« Reply #9 on: 28 Nov 2007, 13:23:48 »
sorry lcd, does your code involve the squad becoming grouped with the chopper on your code?

I've always just used "this moveincargo heloname" in the init of the soliders as an alternative :P

Incidently Does BAS still exist? With regards to arma, are they going to adapt their blackhawks (with fast roping/onmap click drop offs) into it?
Beer is the fuel for the Heavy Metal Engine.

Offline JimiScott

  • Members
  • *
Re: Arma editor
« Reply #10 on: 28 Nov 2007, 15:14:54 »
hi yer its me again.  i was wonderin if u cud set a trigger whereby say a squad in a DC3 would eject out of the plane and parachute down.  does that make ne sense?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: Arma editor
« Reply #11 on: 28 Nov 2007, 16:27:02 »
@ Davies1

no... basicly da foreach command just make da command work 4 every1 in an array (units group player gives da array of da units in player group...)

im dont think BAS r workin on ArmA (dont take my word tho... i dont follow addons 2 much :P) but i can give u some basic fast roping script... as 4 da onmapclick... i think deres some of em around... nd nywayz it shudnt b 2 hard 2 script :P ;) and u cud alwayz try 2 convert BAS scripts from OFP 2 ArmA

@ JimiScott

basicly it makes senese... now theres 2 ways 2 do it... da simple ugly 1... and da more complicated good looking 1 :P :D

lets start w/ simple  :D

u need 2 create a triger and have it activated by whatever u wanna activate (so wen da condition is met it will have da units eject)
now in da on activation field u need da next code

{_x action ["EJECT",LCDFly]} foreach crew LCDFly (assuming da choper is still called LCDFLY of course :D)

da beter lookin way wud b 2 create a script... u will realy need 2 learn how 2 use those 2 create good misions :D

basicly create a txt file and name it (for example it doesnt matter da name realy.. whate important is da .SQF extention) LCDEject.SQF... open da file w/ code editor and put inside it

Code: [Select]
private ["_choper",_delay","_count","crew"];
_choper  = _this select 0;
_delay = _this select 1;

_crew = crew _choper;
_count = count crew;
for [{_i = 0},{_i < count},{_i = _i + 1}] do
{
  (_crew select _i) action ["EJECT",_choper];
  sleep _delay;
};

if (true) exitwith{};

now in da triger dat shud activate da ejecting... u put

nil = [LCDFly,1] execVM "LCDEject.SQF"

now da 1st parameter is da name of da choper (u can use da same code 4 difrent chopers @ da same time :D)
da 2nd parameter is da delay between each units bailing so in my case each unit will wait 1 second b4 ejecting :D

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