IPB


Welcome Guest ( Log In | Register )

 Forum Rules ArmedAssault.info Forum Rules
 
Reply to this topicStart new topic
> Camera Scripting
susachintha
post Jul 1 2009, 17:26
Post #1


New Member
*

Group: Members
Posts: 2
Joined: 11-June 09
Member No.: 5,915



I've been doing camera scripting in .sqs files. I have no problem with that. I want to know is there a way to write scripts using .sqf . Are there commands to use in sqf file for camera scripting. I tried several hours by searching for this, but couldn't find an answer. Please can someone help me?

Thanks. mellow.gif

Susantha.
 
Quote Post
susachintha
post Jul 1 2009, 18:10
Post #2


New Member
*

Group: Members
Posts: 2
Joined: 11-June 09
Member No.: 5,915



QUOTE(susachintha @ Jul 1 2009, 22:26) *
I've been doing camera scripting in .sqs files. I have no problem with that. I want to know is there a way to write scripts using .sqf . Are there commands to use in sqf file for camera scripting. I tried several hours by searching for this, but couldn't find an answer. Please can someone help me?

Thanks. mellow.gif

Susantha.



Not to confuse the problem, camera scripting we use to create Intro, outro-win, outro-loose for a mission.
For example,

; for the intro camera scripting tutorial
; create camera
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]

; point the camera at the player, and place it 2m to the players left,
; 10m to his front and 3m above the ground
_cam camsettarget player
_cam camsetrelpos [-2,10,3]
_cam camcommit 0

; fade in from black over 2 seconds
titlecut [" ","BLACK IN",2]

; wait for 2 seconds for the fade to complete
~2
;;;;;;;;;;;;;;;;;;;;

This is what basic camera scripting code looks like(in sqs). I don't like much to script with sqs. But sqf is more structured.
Thats why I'm searching for a way to write my camera scripting code by sqf..?
Is there a way?
 
Quote Post

Reply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 24th April 2024 - 11:20