OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: megz on 04 Sep 2007, 01:36:52

Title: (solved) stopping cam follow and my first intro for review
Post 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

Quote
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 :)
Title: Re: stopping cam follow
Post by: Planck on 04 Sep 2007, 03:34:06
Why not just use:

? vehiclecamstop == false : goto "loop"


Planck
Title: Re: stopping cam follow
Post by: megz on 04 Sep 2007, 04:35:47
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:
Title: Re: stopping cam follow
Post by: Mandoble on 04 Sep 2007, 11:39:35
Just curious, what kind of position is this:
Code: [Select]
_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?
Title: Re: stopping cam follow
Post by: megz on 04 Sep 2007, 17:03:43
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
Title: Re: (solved) stopping cam follow
Post by: Mandoble on 04 Sep 2007, 20:16:37
somewhere near estelle 37Km below ground level??  :blink:
Title: Re: (solved) stopping cam follow
Post by: megz on 05 Sep 2007, 04:03:28
lol

put it in a scirpt, i assure u its near estelle hehe  :P
Title: Re: (solved) stopping cam follow
Post by: paddy on 05 Sep 2007, 12:48:57
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!
Title: Re: (solved) stopping cam follow
Post by: Planck on 05 Sep 2007, 14:29:39
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
Title: Re: (solved) stopping cam follow + my intro
Post by: megz on 05 Sep 2007, 23:26:14
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)