OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: megz on 04 Sep 2007, 01:36:52
-
Ive got a camera to follow a car to a certain point, then i have created a trigger which on activation sets "vehiclecamstop = true" minus the quotes. The trigger is set to anyone present, repeat no timeouts.
Heres the code
vehiclecamstop = false
#loop
_camera camsettarget unc1
_camera camsetrelpos [0,-8,2.5]
_camera camcommit 0
~0.01
? NOT(vehiclecamstop) : goto "loop"
_camera camPrepareTarget [-57789.44,-57769.50,-37575.86]
_camera camPreparePos [7233.70,8251.32,5.89]
_camera camPrepareFOV 0.700
_camera camCommitPrepared 5
@camCommitted _camera
However it seems the trigger never activates because the camera always stays looking at the car , can't figure it out.
Your help would be lovely :)
-
Why not just use:
? vehiclecamstop == false : goto "loop"
Planck
-
doesn't work, i get a booleon error and the cam doesn't follow the car, just skips to the next code.
Thanks for tryin though. :good:
-
Just curious, what kind of position is this:
_camera camPrepareTarget [-57789.44,-57769.50,-37575.86]where is it pointing at?
Also, do you need to mix prepare and set camera commands for some reason?
-
Hey thanks for the replys, i sorted though, i set the trigger to independant present and it worked, don't know why it didn't work when i attached it to the player or anyone but i should of tried those before posting. sorry for the waste of time ::)
mandoble, i used camera.sqs to get all the angles, its somewhere near estelle.
chrz
-
somewhere near estelle 37Km below ground level?? :blink:
-
lol
put it in a scirpt, i assure u its near estelle hehe :P
-
Mando, its a prepare target, maybe he's just setting it so the camera pans down?
If so its a little processor intensive but it'll work!
-
Now then, if I sePos myself to those coordinates:
[-57789.44,-57769.50,-37575.86]
my man is nowhere near land and is very very far from land and swimming in the ocean, in fact he is nearly 58km west of the maps west edge and nearly 58km south of the maps south edge, shark bait. :yes:
Planck
-
lol, i will upload my intro so you can see. U need slx ppl addon. the people also mention british soldiers alot but i had to change them from brittish models to the standard US ones so i didn't have to change every west unit on the map to the UK model :)
Intro is here:
http://www.ofpec.com/forum/index.php?topic=30213.0 (http://www.ofpec.com/forum/index.php?topic=30213.0)