OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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
-
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.
-
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.
-
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"
-
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
-
What exactly am I now supposed to write into my .sqs file, if the units name was a1 ?
-
a1 switchCamera "INTERNAL" ::)
-
Thanks, IÂ'll try that.