Home   Help Search Login Register  

Author Topic: 2 simple qs  (Read 591 times)

0 Members and 1 Guest are viewing this topic.

MattE

  • Guest
2 simple qs
« on: 11 Nov 2003, 02:45:28 »
1. How do I create a black background with writing on it using a script?

and

2. How do I stop a unit from moving until a certain amount of time has passed?

All help would be greatly appreciated.

Cheers

MattE

  • Guest
Re:2 simple qs
« Reply #1 on: 11 Nov 2003, 02:56:40 »
Sorry one more q.

3. How do i get the writing in the center of the screen.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:2 simple qs
« Reply #2 on: 11 Nov 2003, 03:13:08 »
1. and 3.   I'm not saying this will work, but its on the right lines ...


titlecut [" ","BLACK OUT",2]
~1.9
titlecut [" ","BLACK IN",500]
titlecut ["your text","plain",2]
~8
titlecut ["","plain",1]
titlecut [" ","BLACK IN",2]
~2
exit


2.   Lots of ways.   If you want him to hang out at a waypoint put some numbers in the countdown field.    Or you could use a switch trigger with a timer syncroed to a waypoint.




Plenty of reviewed ArmA missions for you to play

MattE

  • Guest
Re:2 simple qs
« Reply #3 on: 11 Nov 2003, 03:38:05 »
Thanks mac for the quick response, however, the script stuff you wrote still doesn't achieve the effect I am trying to produce.

I'll show you what I am trying to do.

=====================================================
_cam = "Camera" camcreate [0,0,0]
_cam cameraeffect ["internal","back"]
titlecut ["","black in",5]

titleCut ["","BLACK OUT",3]
titleCut ["","BLACK in",2]

_cam camsettarget M1
_cam camsetrelpos [-0.2,20,1.6]
_cam camcommit 0
@camcommitted _cam

titleText ["Paris, 10th July.","BLACK OUT",5] < this is the text I want on a black background in the center of the screen

~7
titleText ["\nDiplomats said to be linked \nwith fugitive terrorist \nknown as Carlos.","BLACK OUT",3] < this too.
~3

cutobj ["TVSet","plain down"]
~5
titleText ["\nCNN News                                                        \nCuban diplomats expelled.","PLAIN DOWN",5]
~7
r1 switchmove "Effectstandtalk"
titleText ["\nEarlier today France expelled three high-ranking Cuban diplomats \nin connection with the world-wide search for a man called Carlos, \nwho is believed too be an important link in an international terrorist network.","PLAIN DOWN",1]
~8
_cam camsetrelpos [-0.2,20,1.6]
_cam camcommit 5
@camcommitted _cam
~3
r1 switchmove "Effectstandtalk"
titleText ["\nThe suspect, whose real name is thought to be Ilich Ramirez Sanchez, \nis being sought in the killing of two French counter-intelligence agents and a Lebanese informer \nat a Latin Quarter apartment on the 27th of June.","PLAIN DOWN",1]
~8
_cam camsetrelpos [-0.2,20,1.6]
_cam camcommit 5
@camcommitted _cam
~3
r1 switchmove "Effectstandtalk"
titleText ["\nThe three killings have led the police in America and Britain to \nwhat they feel is the trail of a major network of international terrorist agents.\nIn the search for Carlos after the killings, French and British policemen","PLAIN DOWN",1]
~8
_cam camsetrelpos [-0.2,20,1.6]
_cam camcommit 5
@camcommitted _cam
~3
r1 switchmove "Effectstandtalk"
titleText ["\ndiscovered large arms caches that linked Carlos to major terrorism in \nWest Germany and led them to suspect a connection between many \nterrorist acts throughout Europe.","PLAIN DOWN",1]
~8
r1 switchmove "Effectstandtalk"
titleText ["\nWait a second... \nYes, here come the three expelled diplomats now.","PLAIN DOWN",1] < at this point I want the camera to target d1 but not move only turn to watch him.
~4
_cam camsettarget d1
_cam camsetrelpos [4,10,1.6]
_cam camcommit 5
@camcommitted _cam
r1 dotarget d1
~3
endcut = true

======================================================

Any suggestions?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:2 simple qs
« Reply #4 on: 11 Nov 2003, 04:04:56 »
Aha!

Well, the way to get a black background is to use a blackin with a very long time on it.     Blackins mean that the screen starts black, and then slowly fades back into the game, right?  Right.    So if the fade is slow enough the screen will stay black for the few seconds of your text.  

Since you want several bits of text over the black I would separate the black from the text and control each seperately.   You can drop the relevant bits from my previous answer into your script.  I take it this is an Intro.   Try this:-


titlecut ["","black in",500]

enableradio false

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

_cam camsettarget M1
_cam camsetrelpos [-0.2,20,1.6]
_cam camcommit 0
@camcommitted _cam

~2

titleText ["Paris, 10th July.","plain",2]

etc.


plain down = bottom of screen
plain = middle of screen


Camera movements:  are you familiar with camera.sqs?  
Plenty of reviewed ArmA missions for you to play

MattE

  • Guest
Re:2 simple qs
« Reply #5 on: 11 Nov 2003, 04:32:33 »
Yes it is a cutscene & and I'm not familar with camera.sqs. What does it do

But at least I think that my opening scene is complete, it's not 100% but it's close enough.

Thanks for your help.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:2 simple qs
« Reply #6 on: 11 Nov 2003, 13:12:02 »
Read messiah's excellent tutorial on camera.sqs - it's in the Ed Depot.    You'll wish you'd discovered it before.
Plenty of reviewed ArmA missions for you to play