Home   Help Search Login Register  

Author Topic: Seeing the player.  (Read 966 times)

0 Members and 2 Guests are viewing this topic.

Jim666

  • Guest
Seeing the player.
« on: 18 May 2005, 14:25:21 »
Im having a problem with my mission Black Dawn, in the intro and outro it seems, that it shows the player standing there. Im not quite sure how to fix this.

In both of the intro i have the player set as player and i have this exec "intro.sqs" in the units init line. Any ideas how i can get round this problem?


Quote from Mikero
Quote
both the intro AND the outro suffer from the same showstopper, basically, me, standing there.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Seeing the player.
« Reply #1 on: 18 May 2005, 15:43:18 »
Quote
the intro and outro it seems, that it shows the player standing there.
All the time or just at the begining? just at the end?

I start my intro.sqs from the file initIntro.sqs that runs automatically before the intro starts.  I don't know if this makes it start sooner than if it were run fron a units init field - but it certainly won't be later.
Also try some balck in at the begining and black out at the end.
« Last Edit: 18 May 2005, 15:45:25 by THobson »

Jim666

  • Guest
Re:Seeing the player.
« Reply #2 on: 18 May 2005, 16:04:12 »
initIntro.sqs? thats a new one ??? From what Mikero said its just at the beginning, check the thread to be more clear.

http://www.ofpec.com/yabbse/index.php?board=23;action=display;threadid=23697

The script for the intro is as follows.

Code: [Select]
_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal", "back"]

_camera camSetTarget [-64915.55,67438.52,-34006.28]
_camera camSetPos [3793.94,3249.87,17.37]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
~2
_camera camSetTarget [-69397.51,-54462.83,-36189.48]
_camera camSetPos [3793.94,3249.87,17.37]
_camera camSetFOV 0.700
_camera camCommit 5
@camCommitted _camera
~2
_camera camSetTarget [48210.82,89034.52,-25530.18]
_camera camSetPos [3727.63,3195.46,3.29]
_camera camSetFOV 0.700
_camera camCommit 10
@camCommitted _camera
~2
_camera camSetTarget [-76221.96,-43379.19,-37868.83]
_camera camSetPos [3722.08,3240.07,3.77]
_camera camSetFOV 0.700
_camera camCommit 5
@camCommitted _camera
~2
_camera camSetTarget [-87807.79,17625.12,-37912.16]
_camera camSetPos [3597.05,3227.60,2.23]
_camera camSetFOV 0.700
_camera camCommit 10
@camCommitted _camera
~2
_camera camSetTarget [-79623.30,-52223.16,-1364.42]
_camera camSetPos [3585.89,3223.29,17.61]
_camera camSetFOV 0.700
_camera camCommit 5
@camCommitted _camera
~7

_camera cameraeffect ["terminate", "back"]
camdestroy _camera

titlecut [" ","BLACK IN",5]
~2

exit
« Last Edit: 18 May 2005, 16:06:03 by Jim666 »

Offline 456820

  • Contributing Member
  • **
Re:Seeing the player.
« Reply #3 on: 18 May 2005, 16:29:05 »
yeah me too never heard of initintro.sqs does that actually do what it says or is it just called that.
but jim666 try this in the units init field
Code: [Select]
[] exec "intro.sqs"Thats what i do and have never had a problem with it since i started to do it like that

Jim666

  • Guest
Re:Seeing the player.
« Reply #4 on: 18 May 2005, 16:39:24 »
Right i'll try that and then re-post my mission.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Seeing the player.
« Reply #5 on: 18 May 2005, 16:47:09 »
Try a black in, 9999 right at the start of the intro script.

You guys are not reading the comref:
http://www.ofpec.com/editors/comref.php?letter=3#Event%20based%20scripts
Click on Event Based scripts
« Last Edit: 18 May 2005, 16:47:57 by THobson »

Jim666

  • Guest
Re:Seeing the player.
« Reply #6 on: 18 May 2005, 17:08:58 »
so i just put [] exec "intro.sqs" in the initIntro.sqs?

or is there more to it? Ive never made a single player mission so this stuff is all new to me.

Offline 456820

  • Contributing Member
  • **
Re:Seeing the player.
« Reply #7 on: 18 May 2005, 17:13:32 »
i just put
[] exec "intro.sqs"
into the players init field within the editor i dont use initintro.sqs until no i never new it even existed

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Seeing the player.
« Reply #8 on: 18 May 2005, 21:36:05 »
That wouldn't work.   init.sqs is not called until after the Intro.  

You must put it in initIntro.sqs.
Plenty of reviewed ArmA missions for you to play

Jim666

  • Guest
Re:Seeing the player.
« Reply #9 on: 18 May 2005, 21:52:37 »
Yes, my mission Black Dawn.

I may have got this sorted though, i re read snypirs tutorial, i'll get back with an update. Thats if this works or not.

Jim666

  • Guest
Re:Seeing the player.
« Reply #10 on: 19 May 2005, 13:16:18 »
Fixed it, Problem solved! :)

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Seeing the player.
« Reply #11 on: 19 May 2005, 14:43:50 »
You would help others by saying how.  Then solve the thread.

Jim666

  • Guest
Re:Seeing the player.
« Reply #12 on: 19 May 2005, 14:49:55 »
Ah yes.

I forgot to add the endcut trigger.

Setting the type to end #1, and putting endcut in the condition field.

Then i replaced:

Quote
; end cutscene
_cam cameraeffect ["terminate", "back"]
camdestroy _cam

With:
Quote
endcut = true

And walla, no more player after the intro.

Simple mistake :)

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Seeing the player.
« Reply #13 on: 20 May 2005, 11:44:06 »
um, for good measure i would put the

Code: [Select]
_cam cameraeffect ["terminate", "back"]
camdestroy _cam


back in, just before the 'endcut = true' - avoids problems i have encountered with undestroyed cameras thinking they're still active. probably won't happen since the intro ends, but it's good practice.