Home   Help Search Login Register  

Author Topic: editing my cam  (Read 472 times)

0 Members and 1 Guest are viewing this topic.

slat3r

  • Guest
editing my cam
« on: 07 Mar 2003, 19:11:46 »
hey, im new to all this cam scripting here is my cam script how do i add all the other commands to the others apart from them all, they all have the same effect "external", "back", how would i add a different effect to a different area of the script, and what are all the other effects if you wouldnt mind could you right them down or lead me in the right direction where they are on a web page or a tut.
thanx very much.

_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]

_cam camsettarget heli
_cam camsetrelpos [ 40, 40, 40.7]
_cam camcommit 0
@camcommitted _cam
~0
_cam camsettarget guba
_cam camsetrelpos [ 1, 1, 1.7]
_cam camcommit 8
@camcommitted _cam
~3
_cam camsettarget base
_cam camsetrelpos [ 1, 1, 1.7]
_cam camcommit 1
@camcommitted _cam
~

_cam camsettarget start
_cam camsetrelpos [ 20, 20, 20.6]
_cam camcommit 25
@camcommitted _cam
~2


_cam cameraeffect ["terminate", "back"]
camdestroy _cam
exit

Offline MeKillYou

  • Members
  • *
  • Looking for some prob, shout for me(hehe)
Re:editing my cam
« Reply #1 on: 14 Aug 2003, 09:53:45 »
A guy called Rob has written a tut about the cam
stuff! Dont remember where i found it though(hehe)

Offline rhysduk

  • Former Staff
  • ****
Re:editing my cam
« Reply #2 on: 14 Aug 2003, 11:52:25 »
Please rephase ur first paragraph so i know what u r syain g... ythanks...

All u need to do is add this line before the camera targets the object, unit etc -

_cam cameraeffect ["internal", "back"][/i]

The words, internal and back can be changed  to external and front,, sorry thats all the other coommands ro whatever they are that i know offf...

An example of ur script witht the relevant information.

Quote
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]

_cam cameraeffect ["external", "back"]
_cam camsettarget heli
_cam camsetrelpos [ 40, 40, 40.7]
_cam camcommit 0
@camcommitted _cam
~0

_cam cameraeffect ["external", "front"]
_cam camsettarget guba
_cam camsetrelpos [ 1, 1, 1.7]
_cam camcommit 8
@camcommitted _cam
~3


_cam camsettarget base
_cam camsetrelpos [ 1, 1, 1.7]
_cam camcommit 1
@camcommitted _cam
~

_cam cameraeffect ["internal", "front"]
_cam camsettarget start
_cam camsetrelpos [ 20, 20, 20.6]
_cam camcommit 25
@camcommitted _cam
~2


_cam cameraeffect ["terminate", "back"]
camdestroy _cam
exit

As u can see i have seperated each individual targetting function from another to enable the script to be read easier by the player.. understand ?

Hope it was some help

Rhys Sorry i dont have an answer to ur second q regarding Markers... try using gamelogics instead - its easier !
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

slat3r

  • Guest
Re:editing my cam
« Reply #3 on: 14 Aug 2003, 17:24:10 »
ok u basicaly answered the 1st paragraph, cheers.
is it possible to use the 1's bis have in the game such as zoon around etc etc????

Gameer_77

  • Guest
Re:editing my cam
« Reply #4 on: 14 Aug 2003, 20:13:38 »
No...only through triggers.

And learn camera.sqs mate :P

Gameer

Offline rhysduk

  • Former Staff
  • ****
Re:editing my cam
« Reply #5 on: 16 Aug 2003, 13:39:50 »
Slat3r,

Try downloading SnYpirs and Messiahs Camera Scripting Tut's and learn from them... i prefere to make my own camera scripts and not use the ones by BIS - basically i cant be bothere to sort out the PBO files when i have decrypted them...

Good luck dude !
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)