Home   Help Search Login Register  

Author Topic: Another mission ending Qs  (Read 1038 times)

0 Members and 1 Guest are viewing this topic.

Knut Erik

  • Guest
Another mission ending Qs
« on: 19 Mar 2003, 12:53:59 »
I have a problem... When I uses a camera at the end of the mission (you know. A camera that views the battlefield or something), the end command doesn't seem to work. In a script forexsample.

_camera = "camera" camcreate [0,0,0]
_camera setcameffect ["internal","back"]
_camera setcamrelpos [2,2,2]
_camera camsettarget aP
_camer camcommit 0
endmission=true
 Something like that. (Don't know if the commands are right up there, but it is in my end.)

Then I creates a trigger that have the condicion endmission
And on activation #end1
When the camera shows up, the mission never ends!!

Is there a way to fix this?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Another mission ending Qs
« Reply #1 on: 19 Mar 2003, 13:05:28 »
It should work.

Taken from the Tutorial mission in the Ed Depot......

--------------------------------------
~8

"2" Objstatus "DONE"

titlecut [" ","BLACK IN",3]

enableradio false

_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]

_cam camSetTarget [-45132.40,90394.12,-26215.94]
_cam camSetPos [1396.24,5877.19,22.72]
_cam camSetFOV 0.700
_cam camCommit 0
@camCommitted _cam

titlecut ["Mission accomplished", "plain", 3]

_cam camSetTarget [-92413.16,-16657.67,-26215.85]
_cam camSetPos [1396.24,5877.19,22.72]
_cam camSetFOV 0.700
_cam camCommit 9
@camCommitted _cam

~3

titlecut ["","BLACK OUT",2]
~2
_cam cameraeffect ["terminate", "back"]
camdestroy _cam

; this variable fires the trigger which actually ends the mission
end=true
exit

---------------


And then of course a trigger

type:    End#1
condition:   end
Plenty of reviewed ArmA missions for you to play

Knut Erik

  • Guest
Re:Another mission ending Qs
« Reply #2 on: 19 Mar 2003, 13:29:12 »
:hmm: Hmm :hmm:
I'll test more when I gets home...

:hmm: :hmm:
Veeeery strange
:hmm: :hmm:

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Another mission ending Qs
« Reply #3 on: 19 Mar 2003, 15:53:19 »
_camera = "camera" camcreate [0,0,0]
_camera setcameffect ["internal","back"]
_camera camcommit 0
_camera camsettarget aP
_camera setcamrelpos [2,2,2]
_camera camcommit 0
endmission=true

I think that is it...

And you have to kill th camera for the other Q.

Knut Erik

  • Guest
[color=Green]Topic solved people![/color]
« Reply #4 on: 19 Mar 2003, 19:19:31 »
Here is how I did it.... And it worked.

_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal","back"]
_camera camSetTarget [90161.66,-32587.21,-48060.46]
_camera camSetPos [9329.15,1087.39,49.86]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
_camera camSetTarget [27943.16,-84475.77,-48059.82]
_camera camSetPos [9329.15,1087.39,49.86]
_camera camSetFOV 0.700
_camera camCommit 10
@camCommitted _camera
   ~2
titleText ["Mission complete.", "Plain"]
titlecut ["","black out",5]
   ~5
"3" objstatus "done"
   ~1
_camera cameraeffect ["terminate","back"]
aP addRating 500
TotalEnd=true


 
 

Thanks a lot for the help.
8) Deå! 8)