OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Jim666 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
both the intro AND the outro suffer from the same showstopper, basically, me, standing there.
-
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.
-
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 (http://www.ofpec.com/yabbse/index.php?board=23;action=display;threadid=23697)
The script for the intro is as follows.
_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
-
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
[] exec "intro.sqs"Thats what i do and have never had a problem with it since i started to do it like that
-
Right i'll try that and then re-post my mission.
-
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 (http://www.ofpec.com/editors/comref.php?letter=3#Event%20based%20scripts)
Click on Event Based scripts
-
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.
-
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
-
That wouldn't work. init.sqs is not called until after the Intro.
You must put it in initIntro.sqs.
-
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.
-
Fixed it, Problem solved! :)
-
You would help others by saying how. Then solve the thread.
-
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:
; end cutscene
_cam cameraeffect ["terminate", "back"]
camdestroy _cam
With:
endcut = true
And walla, no more player after the intro.
Simple mistake :)
-
um, for good measure i would put the
_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.