Home   Help Search Login Register  

Author Topic: snypers testcam tute  (Read 712 times)

0 Members and 1 Guest are viewing this topic.

ukm

  • Guest
snypers testcam tute
« on: 05 Dec 2002, 21:40:33 »
I have followed it word for word several times yet it still wont work in game. heres my verion of his script. copied exactly how he has done it.

_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

; move the camera to 5m behind the player, 2m to his left and 0.5m above the ground
; do the move over 10 seconds, and then wait for 2 seconds
_cam camsetrelpos [-2,-5,0.5]
_cam camcommit 10
@camcommitted _cam
~2

; target object2 (the camera will spin around to face object2
; when camcommit is called)
_cam camsettarget "object2"

; the camera will move relative to obejct2. 3m to the front, 1m to the
; left and 2m above the ground when camcommit is called
_cam camsetrelpos [-1,3,2]

; inform the camera to execute the changes over ten seconds _cam camcommit 10
@camcommitted _cam

; wait for two seconds
~2

; fade out to black over 2 seconds
titlecut [" ","BLACK OUT",2]

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

; end cutscene
_cam cameraeffect ["terminate", "back"]
camdestroy _cam

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

; exit the script
exit

After i type in [] exec "testcam.sqs" into the players init field nothing happens.  Any help or experts to tell me what im doing wrong?

UKM

EDIT:: I am using v1.0 if that helps or not
« Last Edit: 05 Dec 2002, 21:42:17 by ukm »

Respined

  • Guest
Re:snypers testcam tute
« Reply #1 on: 15 Dec 2002, 15:19:11 »
[]exec "-------"      

you did [] exec "---------"

Offline snYpir

  • BIS Team
  • ****
  • OFPEC Jedi Master
    • OFPEC
Re:snypers testcam tute
« Reply #2 on: 15 Dec 2002, 22:08:44 »
 :-\

I copied and pasted straight from your text into a file, called it testcam.sqs, made a unit (that was the player), put [] exec "testcam.sqs" into the init field and it worked.

Do you mean version 1.0 of OFP??? If that is true, head straight for www.flashpoint1985.com and download the patches up to 1.46 right now! ;D

For the record, it doesn't make any difference if there is a space between [] and exec.

Please ensure you are calling [] exec "testcam.sqs" from the 'Initialization' field for the player unit, and that testcam.sqs exists in your missions directory.

After checking the above, and upgrading to version 1.46, please let me know here if it still doesn't work. 8)
Bohemia Interactive Simulations

HotShot

  • Guest
Re:snypers testcam tute
« Reply #3 on: 15 Dec 2002, 22:34:39 »
I had the same problem as ukm but running version 1.90. I know the script was fine as i copied and pasted it from the tutorial off OFPEC into a text file and when it didn't work i downloaded the one snYper had made. It still didn't work despite putting [] exec "testcam.sqs" in a units init feild. But then i made a new mission and put the text file into the new mission's folder and put [] exec "testcam.sqs" in the units init feild the same but this time it worked! I did everything the same in the new mission as i had in the first mission. This happened again, and again by making a new mission it worked. So to ukm. Just Clear the mission and save it as a different name. Now put the text file in the new mission folder and do exactly the same as it tells you to in the tutorial and i'm sure it'll work.