OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: O Neil on 30 Dec 2002, 09:00:23

Title: Trigg
Post by: O Neil on 30 Dec 2002, 09:00:23
Hey

2 Qs:

1) How can I make it so that if a soldier walks into a trigger, (Which has a camera veiw of FIXED) make the camera veiw veiw from a gamelogic or something.
Prob a gay question.

2) How do you make a break in the speech?   n/ ?

Thxs
Title: Re:Trigg
Post by: icarus_uk on 30 Dec 2002, 13:06:04
Never in my life have I seen one question start flirting with a question of the same gender, but then I probably go to the wrong sort of bars.

Either way the answer tothe first question is to use a camera script.  You get much better control over camera scenes using a script.

Somthing like;

_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]
_cam camsettarget UnitName
_cam camsetrelpos [0, 0, 0]
_cam camcommit 0

_cam camsetpos (getpos LogicName)
_cam camsettarget UnitName
_cam camcommit 0
@camcommitted _cam


Should do the trick.

As for the line break in text, use  \n.  This only gives a ine break.  If you want a pause you probably want to use a seperate trigger (if you are using triggers), or put a ~number in your  script to denote  pause.
Title: Re:Trigg
Post by: O Neil on 01 Jan 2003, 02:33:59
No, I mean how do you make it so that the words appear ontop of each other.
/n didn't work for me.
Title: Re:Trigg
Post by: icarus_uk on 01 Jan 2003, 02:48:57
are you sure?  It works for me.
Title: Re:Trigg
Post by: O Neil on 01 Jan 2003, 03:00:48
I'll try it in a min
Title: Re:Trigg
Post by: Stu35 on 01 Jan 2003, 04:16:56
its backslash - \n

not forward slash /n

thats probably why.
Title: Re:Trigg
Post by: O Neil on 02 Jan 2003, 00:53:53
okhttp://URL