OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Putin on 10 Jul 2003, 21:26:22

Title: How to create a first person intro
Post by: Putin on 10 Jul 2003, 21:26:22
Hi there

I just wantet to ask how I can make a camera showing the first person of a unit.

Thanks
Title: Re:How to create a first person intro
Post by: Zombie on 10 Jul 2003, 22:50:48
Not sure what you mean here:
If you mean the camera shows a certian person in the group, name that person then _camera settarget personsname
If you mean a camera with a first person view that moves around, set the camera target somewhere, then move the camera with a slow camcommit and it will move to the next point.
I attached a simple "mission" below to show what I mean
Title: Re:How to create a first person intro
Post by: Putin on 10 Jul 2003, 23:58:06
No, I mean that the camera should be out of the view of a soldier, just like you always see it if you play sp.
First Person.
Title: Re:How to create a first person intro
Post by: Putin on 10 Jul 2003, 23:58:49
No, I mean that the camera should be out of the view of a soldier, just like you always see it if you play sp.
First Person.
Sorry that I explain that bad.
Title: Re:How to create a first person intro
Post by: deaddog on 11 Jul 2003, 01:04:50
Try this:

unit switchCamera mode
Operand types:
    unit: Object
    mode: String
Type of returned value:
    Nothing
Description:
    Switch camera to given vehicle / camera. Mode is one of: "INTERNAL" (1st person), "GUNNER" (optics / sights), "EXTERNAL" (3rd person), "GROUP" (group).

Example:
    sniperOne switchCamera "gunner"
Title: Re:How to create a first person intro
Post by: Zombie on 11 Jul 2003, 03:29:36
hmmm... new effect here for me.  I always use cameraeffect internal, I don'tnow what the differrence is between swichcamera and cameraeffect.  Might be worth playing around with, but not sure any of this helps you putin, sorry
Title: Re:How to create a first person intro
Post by: Putin on 11 Jul 2003, 18:05:03
What exactly am I now supposed to write into my .sqs file, if the units name was a1 ?
Title: Re:How to create a first person intro
Post by: Burn on 11 Jul 2003, 20:39:33
a1 switchCamera "INTERNAL" ::)
Title: Re:How to create a first person intro
Post by: Putin on 11 Jul 2003, 21:01:24
Thanks, IÂ'll try that.