OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tim Pink on 02 Jul 2003, 02:47:14

Title: Questions, Questions, Questions
Post by: Tim Pink on 02 Jul 2003, 02:47:14
hi peoples

how r we all

i have a few simple Q's

alright ill try to explain myself well

Im making a mission about moving via a convoy to a broken down un supply column which is also under siege.
when you get to the burning convoy there are a few austrian soldiers fighting off a swarm of russians hell bent on stealing the water truck

when the HMMWV's pull up they form a defensive perimeter while two wounded men are put in an m113 ambulance and speed back to base with a HMMWV as security

at the same time your talking to the autrian officer and he;s giving you a sitrep.
after theve finished talking i want the un soldiers to board the HMMWV's and then you make a speedy exodus

1st Q
the soldiers are all by themselves hiding behind cover, not grouped to a lead officer, how do i give them the command to board a certain vehicle without waypoints?.

2nd Q
how do i configure a trigger to make sure that the convoy only moves out when all 5 soldiers have boarded?
eg Hanz in HMMWV1 and Roderick in HMMWV1(im not sure if thats even correct, thats why im here) is the condition that has to be met before the convoy moves

3rd Q
does this work for groups aswell?
can u use the same trigger to detect if a whole group is in the vehicle

4th Q how would i make a blackhawk follow the convoy to its finish position(to appear as if its providing covering fire)

5th Q for some atmosphere i wanted a un soldier to be maning the machine gun of a jeep and firing crazily at the bushes nearby

i wanted to write a little script but im not sure if its right

#a
hanz dofire gl1
~1
hanz dofire gl2
~1
hanz dofire gl3
~1
hanz dofire gl4
~1
hanz setammo 1
goto #a

i wanted it to appear as if he was sweeping the bushes
im not sure if the setammo command is right or about the goto command
any help would be greatly appreciated

thanx heaps

Tim
Title: Re:Questions, Questions, Questions
Post by: LCD on 02 Jul 2003, 03:10:18
1)

unitname assignascargo vehicle <----- wil asign da unit 2 vehicles cargo
unitname assignasgunner vehicle <----- wil asign da unit 2 vehicles guner
unitname assignasdriver vehicle <----- wil asign da unit 2 vehicles driver
unitname assignascommander vehicle <----- wil asign da unit 2 vehicles comander

*note - use unassignvehicle unitname - 2 unassign da unit from its place

after u put ur choice u do

[unitname] ordergetin true

u can put ny number of units dere in da array so it wil b somin like

[unitnam1,unitname2] ordergetin true (use ordergetin false - 2 disembark)

2+3) u can use 3 condition lines (choose wich 1 u prefer)

- (unitname1 in vehiclename) and (unitname2 in vehiclename) and (unitname3in vehiclename) etc

- "(vehicle _X) != _X" count (units (group leadername))  == (count (units (group leadername))

*note - u can make array not of group like dat : arrayname = [unitname1,unitname2,unitname3,etc]

nd da code den wil b : "(vehicle _X) != _X" count arrayname == count arrayname

or just use da array str8 away like dat : "(vehicle _X) != _X" count [unitname1,unitname2,unitname3,etc]  == number

da number den is da number of units in da arra

- "_X in vehiclename" count arrayname == (count arrayname)

*note - u can use da same modes as in da above example

da 1st way works alwayz

da sec way works 4 difrent vehicles

da 3rd way works only 4 da same vehicle

remember dat humve have only 4 places ;) :P

4) group it 2 da convoy trucks - or use looped move commands ;D

5) i dont realy know :P - u cant shot on GLS - u need enemy object 2 shot on

LCD OUT
Title: Re:Questions, Questions, Questions
Post by: cornholio on 02 Jul 2003, 04:04:36
As for your last Q

You could replace the 4 game logics with east soldiers that have the ammo removed and use the dofire command.

or

I have an invisible target addon but I don't remember offhand where I d/l'd it. If your interested, hit me up on IM. (then of course you have another addon in your mission.sqm :( )

 :cheers:

corno
Title: Re:Questions, Questions, Questions
Post by: Tomb on 02 Jul 2003, 23:37:44


1st Q:

the soldiers are ...not grouped,
how do i give them the command to board a certain vehicle without waypoints?.


Tim


make an array of all the morons:

    CarBummers=[bob, Rob, Sob, etc. ...]


Just name all the boys & put that array-code in someones INIT field. :-*
(if they're lined up you could also just make the array outta ALL units in a trigger) :

    TriggerArray = ([_x] in thislist)

 I think it was...  :)


And then tell 'em to get in:

          "_x action [""get in"", car1]" foreach CarBummers

And to kick 'em out:

        "[_x] orderGetIn false" foreach CarBummers


Som'n like that.


   
Title: Re:Questions, Questions, Questions
Post by: LCD on 02 Jul 2003, 23:53:35
@ tomby - i said it already :P

Quote
2+3) u can use 3 condition lines (choose wich 1 u prefer)

- (unitname1 in vehiclename) and (unitname2 in vehiclename) and (unitname3in vehiclename) etc

- "(vehicle _X) != _X" count (units (group leadername))  == (count (units (group leadername))

*note - u can make array not of group like dat : arrayname = [unitname1,unitname2,unitname3,etc]

nd da code den wil b : "(vehicle _X) != _X" count arrayname == count arrayname

or just use da array str8 away like dat : "(vehicle _X) != _X" count [unitname1,unitname2,unitname3,etc]  == number

da number den is da number of units in da arra

- "_X in vehiclename" count arrayname == (count arrayname)

*note - u can use da same modes as in da above example

da 1st way works alwayz

da sec way works 4 difrent vehicles

da 3rd way works only 4 da same vehicle

remember dat humve have only 4 places  


LCD OUT
Title: Re:Questions, Questions, Questions
Post by: Tomb on 02 Jul 2003, 23:55:20
sorry.

I'll log off now