Home   Help Search Login Register  

Author Topic: (solved) stopping cam follow and my first intro for review  (Read 1794 times)

0 Members and 1 Guest are viewing this topic.

Offline megz

  • Members
  • *
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 :)
« Last Edit: 05 Sep 2007, 23:59:47 by megz »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: stopping cam follow
« Reply #1 on: 04 Sep 2007, 03:34:06 »
Why not just use:

? vehiclecamstop == false : goto "loop"


Planck
I know a little about a lot, and a lot about a little.

Offline megz

  • Members
  • *
Re: stopping cam follow
« Reply #2 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:

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: stopping cam follow
« Reply #3 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?

Offline megz

  • Members
  • *
Re: stopping cam follow
« Reply #4 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

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: (solved) stopping cam follow
« Reply #5 on: 04 Sep 2007, 20:16:37 »
somewhere near estelle 37Km below ground level??  :blink:

Offline megz

  • Members
  • *
Re: (solved) stopping cam follow
« Reply #6 on: 05 Sep 2007, 04:03:28 »
lol

put it in a scirpt, i assure u its near estelle hehe  :P

Offline paddy

  • Contributing Member
  • **
  • Llama whipping good
Re: (solved) stopping cam follow
« Reply #7 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!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: (solved) stopping cam follow
« Reply #8 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
I know a little about a lot, and a lot about a little.

Offline megz

  • Members
  • *
Re: (solved) stopping cam follow + my intro
« Reply #9 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
« Last Edit: 06 Sep 2007, 20:25:38 by megz »