OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Komuna on 06 Oct 2003, 15:23:32

Title: CamSCRIPTING: Using bank,dive&dir commands
Post by: Komuna on 06 Oct 2003, 15:23:32
What shall I do to get the following commands to work:
camSetBank, camSetDir, camSetDive ?

I've tried everything and they seem not to work...  :-\

E.g.:

Quote
_cam = "camera" camCreate [4000,3000,10]
_cam settarget [4020,3020,10]
_cam setFov 0.1
_cam setBank 20 //Tried also decimal values
_cam camCommit 0

_cam cameraEffect ["internal","top"]

_cam setBank 120
_camCommit 10

... nothing happens.
Title: Re:CamSCRIPTING: Using bank,dive&dir commands
Post by: Artak on 06 Oct 2003, 17:19:25
I'm not familiar with these commands but I noticed you had some clitches in your script..

_cam is the name of the camera you create, which is cool, but you've confused the command and the camere name together.
Code: [Select]
_cam setBank 120
_camCommit 10
In my mind should be
Code: [Select]
_cam camsetBank 120
_cam camCommit 10

*cough* uhm.. same thing with the upper part of the script.

Code: [Select]
_cam = "camera" camCreate [4000,3000,10]
_cam settarget [4020,3020,10]
_cam setFov 0.1
_cam setBank 20 //Tried also decimal values
_cam camCommit 0
should be
Code: [Select]
_cam = "camera" camCreate [4000,3000,10]
_cam camsettarget [4020,3020,10]
_cam camsetFov 0.1
_cam camsetBank 20 //Tried also decimal values
_cam camCommit 0

Those are the ones I found, but I'm not an expert though.
Title: Re:CamSCRIPTING: Using bank,dive&dir commands
Post by: Komuna on 06 Oct 2003, 17:27:32
Eh! Thanks... But the syntax i used in my original sqs is right... I use camSetBank and camSetDir, etc... C'mon... I'm not a newbie. ;D
Title: Re:CamSCRIPTING: Using bank,dive&dir commands
Post by: Black_Feather on 06 Oct 2003, 20:54:45
they don't work, don't think they ever have.
Title: Re:CamSCRIPTING: Using bank,dive&dir commands
Post by: Komuna on 07 Oct 2003, 14:55:14
I apreciate your post Black_Feather. Thanks.

As the solution is unexistant, this topic becomes "Solved". Just IM me if you have the ansr.