OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Abyss on 28 Jun 2003, 18:55:12

Title: Why aint this working
Post by: Abyss on 28 Jun 2003, 18:55:12
hi guys and girls if there any i dont know anyway i got this intro to my mission and i thinks this is possiable i want a radio message to come up on the screen when the camera has zoomed in on a radio i have placed in the game but iv disabled the radio using "EnableRadio false" which works fine then i put a unit called dude in the game and typen in the camera script

EnableRadio true  

_cam camsettarget radio
_cam camsetrelpos [-3, 1, 1]
_cam camcommit 5
@camcommitted _cam
dude sidechat "bla bal bal"
~5
but this does not work any one know what i can do  ???

thx in advance abyss
Title: Re:Why aint this working
Post by: Oskar on 28 Jun 2003, 19:02:45
Whats the error message?
Title: Re:Why aint this working
Post by: Abyss on 28 Jun 2003, 19:05:28
there is not one the intro runs its just when  the camera looks at the radio nothing happens and it then the script carries on
Title: Re:Why aint this working
Post by: Wolf on 28 Jun 2003, 19:08:19
That's because in an intro, the black border covers over any Sidechat messages, to get it to show up, you must disable the border, I cannot remember the command, but its in the command reference guide.


Found it.

Command :  ShowCinemaBorder

 Description :  Enables/disables the black border at the top and bottom of the screen (letterbox) when  the camera view is not from the player's perspective.
 One example is you can use this in the On Activation field of a trigger which is using a camera effect at that
waypoint.

 Syntax : ShowCinemaBorder TorF

 TorF can be either true or false
 Returns :
 N/A
 Example :
 ShowCinemaBorder False
Title: Re:Why aint this working
Post by: Abyss on 28 Jun 2003, 19:11:07
O right Thanks a lot i take it you mean the command ref on this site yeah ;D
Title: Re:Why aint this working
Post by: Wolf on 28 Jun 2003, 19:13:23
I found the command again. ^^^
Title: Re:Why aint this working
Post by: Abyss on 28 Jun 2003, 19:15:33
yeah i saw lol thanks, dunno what I would do without you lot  ;D
Title: Re:Why aint this working
Post by: Abyss on 28 Jun 2003, 19:23:59
sorry but that did not work heres what i put in

EnableRadio false
titlecut [" ", "black in", 1]
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]
ShowCinemaBorder False

_cam camsettarget dude
_cam camsetrelpos [0, 1, 1.7]
_cam camcommit 0
@camcommitted _cam

~2

_cam camsettarget man4
_cam camsetrelpos [0, -1, 1]
_cam camcommit 5
@camcommitted _cam


_cam camsettarget man5
_cam camsetrelpos [0, -1, 1]
_cam camcommit 5
@camcommitted _cam


_cam camsettarget man6
_cam camsetrelpos [0, -1, 1]
_cam camcommit 5
@camcommitted _cam

_cam camsettarget man7
_cam camsetrelpos [0, -1, 1]
_cam camcommit 5
@camcommitted _cam

_cam camsettarget car
_cam camsetrelpos [5, 1, 3]
_cam camcommit 5
@camcommitted _cam
~5
EnableRadio true
dude sidechat "bla bla bla"
_cam camsettarget radio
_cam camsetrelpos [-3, 1, 1]
_cam camcommit 5
@camcommitted _cam

this is what I got so far but the radio message still does not come up i've even tryed putting dude sidechat "bla bla"
in a trigger but that dont work arrrrrrr whats wrong :(
Title: Re:Why aint this working
Post by: Kaliyuga on 28 Jun 2003, 20:29:40
 I've never known radio messages to show up in the intro...

but that's probably due to what Wolf mentioned.

But most people just use titletext instead for intro/outro

:cheers:
Title: Re:Why aint this working
Post by: max_killer_payne on 28 Jun 2003, 22:10:56
The borders don't actually cover up the radio. Try it create a cutscene in a mission, with the borders and then get a sidechat message to come up and it will come up over the borders. But in the intro this doesent work.
Title: Re:Why aint this working
Post by: LCD on 28 Jun 2003, 22:17:52
da thing is - dat in intro (n outros ;D) deres no player vehicle (2 check - try usin player - it wont recognize it ;)) - so deres no1 2 read da masgs  ;D

LCD OUT
Title: Re:Why aint this working
Post by: Abyss on 29 Jun 2003, 20:38:22
ok guys thanks i'll make the intro a cutscene instead untill the next time i'll see ya around thans again you lot ;D