Results 1 to 5 of 5

Thread: Camera: simple

  1. #1
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_objet1 = _this select 0
    _cam = &#34;camera&#34; camcreate &#91;0,0,0&#93;
    _cam cameraeffect &#91;&#34;internal&#34;, &#34;back&#34;&#93;

    ; point the camera at the object1, and place it 150m to the object1s left,
    ; 45m to his front and 120m above the ground
    _cam CamSetFOV 0.50
    _cam camsettarget _objet1
    _cam camsetrelpos &#91;-150,45,120&#93;

    _cam camcommit 0

    ; fade in from black over 2 seconds
    titlecut &#91;&#34; &#34;,&#34;BLACK IN&#34;,2&#93;

    ; wait for 2 seconds for the fade to complete
    ~2
    ; wait two seconds
    ~10

    ; fade out over 2 seconds
    titlecut &#91;&#34; &#34;,&#34;BLACK OUT&#34;,2&#93;
    ~2
    camDestroy camera
    camDestroy _cam

    exit [/QUOTE]

    my camera isnt destroy at end of script. screen is black at infinite.

  2. #2
    Moderator, ret.
    oida ouk eidos
    raedor's Avatar
    Join Date
    Sep 30 2002
    Location
    Germany, Austria
    Posts
    5,284
    Add a<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">titlecut &#91;&#34; &#34;,&#34;BLACK IN&#34;,2&#93;[/QUOTE]just before the exit.

  3. #3
    i mean, camera isnt destroy with that &#33;
    i&#39;m freezed on the camera view.

  4. #4
    try this instead:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_cam cameraeffect &#91;&#34;terminate&#34;, &#34;back&#34;&#93;
    camdestroy _cam[/QUOTE]




  5. #5
    Quote Originally Posted by (Messiah @ Dec. 13 2006,11:43)
    try this instead:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_cam cameraeffect &#91;&#34;terminate&#34;, &#34;back&#34;&#93;
    camdestroy _cam
    [/QUOTE]
    Search was my friend:) (I had the same prob as topic poster)

    Thx Messiah, it works&#33;
    New music clip Max Qubit - Stars | OFP:Elite's Battle at Le Port 60.000+ views, 9/10 rating (mission editor) | Soundclick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •