OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: tateyou on 26 Jun 2008, 16:48:08

Title: Camscripting problem
Post by: tateyou on 26 Jun 2008, 16:48:08
Code: [Select]
titlecut ["","BLACK IN",5]
_camera = "camera" camcreat [0,0,0]
_camera cameraeffect ["internal","back"]

;=== 22:21:22
_camera camPrepareTarget stryker
_camera camPreparePos [2543.43,2537.12,2.00]
_camera camPrepareFOV 0.700
_camera camCommitPrepared 0
@camCommitted _camera

~10

Player cameraeffect ["terminate","back"]
camDestroy _camera
end1=true;
Exit;

What's wrong with this script? i did it step-by-step as the AMS Camscripting Tutorial said, but when i preview it, there is an error appeard something like this:
'/#/ camCommitted _camera'
error camcommitted:type string,expected object

What's going on? Is it the script's problem or i did something wrong in the editor?Help!
Title: Re: Camscripting problem
Post by: Mandoble on 26 Jun 2008, 16:54:16
  camcreat ->  camcreate
Title: Re: Camscripting problem
Post by: tateyou on 26 Jun 2008, 17:03:30
 :-[
thanks!
i forgot this can cause the problem too...