OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: zsa_zsa_rasputin on 02 Jun 2003, 19:09:18

Title: drivers, commanders, gunners ETC of vehicles
Post by: zsa_zsa_rasputin on 02 Jun 2003, 19:09:18
I was wondering if there was a way to specfiy a particular unit inside a vehicle who ISNT the gunner, driver, commander, pilot, etc.
Just "Cargo"...?  ???
I mean for the purposes of focusing the camera druing a cutscene or for an enemy unit to target, or watever...?

Does anyone understand what I mean?!!
I guess it might help if the unit was named and watever, but whether or not, is it possible?
Are there arny scripts or example mission out that implement it?

Cheers all,
Dan  ;D
Title: Re:drivers, commanders, gunners ETC of vehicles
Post by: Captain Crunch on 02 Jun 2003, 20:04:33
I'm gonna help You but You will have to put more lights in my brains!! ;)

I'm not quiet sure what You mean. Can You presice what You wanna do?
Title: Re:drivers, commanders, gunners ETC of vehicles
Post by: LCD on 02 Jun 2003, 20:19:00
check da switchcamera (http://www.ofpec.com/editors/resource_view.php?id=82) TUT by lilmat (w/ my help ;D ;))

LCD OUT
Title: Re:drivers, commanders, gunners ETC of vehicles
Post by: zsa_zsa_rasputin on 03 Jun 2003, 00:40:26
@Captain
I mean....
If for example you wanted to focus the camera in a cutscene on a particular unit in a vehicle - you could easily focus on the driver, the gunner, etc - as they are all designated position in the vehicle...

However - what if you wanted a unit in Cargo?
Are they designated cargo numbers (eg. M113a passenger #3) or something.
Get me? :)

@LCD cheers bud

Dan  ;D
Title: Re:drivers, commanders, gunners ETC of vehicles
Post by: macguba on 03 Jun 2003, 10:29:45
switchcamera allows you to do that, certainly, though I have a feeling it allows only one in-cargo camera postition.    Anyway, as LCD said, read the tute.  ;)   By experimenting with making sure the loons get into the vehicle in the right order and using gamelogics to fill any awkward empty spaces, you may be able to get the effect you want.
Title: Re:drivers, commanders, gunners ETC of vehicles
Post by: SimonRussi on 03 Jun 2003, 12:33:33
you want your cam to point on a unit inside the vehicle? so why not naming the unit and use _cam camsettarget unitname?

simon
Title: Re:drivers, commanders, gunners ETC of vehicles
Post by: LCD on 03 Jun 2003, 12:35:34
da main prob is dat if da vehicle is movin he wil have 2 move da cam w/ it ;)

nd it wil b even biger prob if its helo  ;)  ;D

LCD OUT
Title: Re:drivers, commanders, gunners ETC of vehicles
Post by: Doolittle on 04 Jun 2003, 05:43:36
Don't forget:
Code: [Select]
_cargo = crew _vehicle - [driver _vehicle] - [gunner _vehicle] - [commander _vehicle]You may still have a long list of cargo objects.

Doolittle