Forum Jump :

Author Message

Duke  



Posts: 401
Rank:


Level: Member

Country: ca
Location: Under your bed.
Occupation: Avid Gamer, Loving Father.
Age: 49
In-game name:

 
#16 Posted at 2007-02-02 01:24        
     
Ahhh, that


Author Message

menez  



Posts: 34
Rank:


Level: Member

Country: za
Location:
Occupation:
Age:
In-game name:

 
#17 Posted at 2007-03-09 00:03        
     
Hi,

I have made an intro scene where the camera pans to each base on the map. I just have a problem with the text.

At each base I want a title to come on the screen naming it or have a small message but no-matter what I change the time to, it always just flashes on the screen for a second not giving hardly enough time to read it.

Can someone please tell me where/if I m going wrong???

Also, how do I add music??

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

_cam camsettarget player
_cam camsetrelpos [-2,10,3]
_cam camcommit 0

titlecut ["OPERATION SILENT STRIKE","BLACK IN",3]
~3

_cam camsetrelpos [-2,-5,0.5]
_cam camcommit 4
@camcommitted _cam
~2

_cam camsettarget object2
_cam camsetrelpos [10,8,2]
_cam camcommit 6
@camcommitted _cam
~1

titlecut ["THE U.S. AFB","",5]
~1

_cam camsettarget object3
_cam camsetrelpos [27,20,3]
_cam camcommit 4
@camcommitted _cam
~4


Advertisement


Author Message


Posts: 20277
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 41
In-game name: Foxhound

 
#18 Posted at 2007-03-09 03:37        
     
menez : titlecut ["OPERATION SILENT STRIKE","BLACK IN",3]
~3

I think you need to "Black out" first, sicne black is meant to go from black to normal screen.

titlecut ["THE U.S. AFB","",5]
~1

Since you do NOT specify a fademethod I suggest you use "titletext" instead of "titlecut"

Also, how do I add music??

You want to play custom music or music already in the game?

Visit my family webshop desteigerhoutshop.nl.

Author Message

menez  



Posts: 34
Rank:


Level: Member

Country: za
Location:
Occupation:
Age:
In-game name:

 
#19 Posted at 2007-03-09 05:50        
     
Thanks Fox,

Either. But if I added an mp3 would that be like legal and stuff? :dontknow


Author Message


Posts: 20277
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 41
In-game name: Foxhound

 
#20 Posted at 2007-03-09 07:34        
     
You can not use a normal mp3, you have to make the soundfile arma compatible.
Arma uses ogg files for this.

You will have to add a reference to those sound files in the description.ext.
A detailed explanation can be found here in the wiki.

Also you have to make those files in the correct way, for that take a look
http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=56b77a5de189764963df23d41f7cc83c;act=ST;f=71;t=58898;hl=sound

http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=56b77a5de189764963df23d41f7cc83c;act=ST;f=71;t=57773;hl=sound

And offcourse our great resource OFPEC.



Adding music from a band to your mission and redistributing it could be considered illegal. I say could since actually it is illegal but distributing a music file like this (in a mission, using it for the ambience of the mission) is done in so many games by ordinary people like you and me (not talking businesses here) you will have to find a judge who will rule against it.
And even if you ever find such a judge than they still have to find you.

Really dont worry about it, add whatever you like to your mission, as long as your missions/files/etc etc are available for free everything will be ok.
If you are going to ask for money or force people to pay for your work you can consider yourself on the wrong way of the law definalty. :)

The above is all my opinion and from what I have read in the past years about this. It doesnt gurantuee anything, I might be completely wrong.
However, as far as I know there hasnt been any rulling about this.



[edit]
Linking to BI forums is a pain :(

Visit my family webshop desteigerhoutshop.nl.

Author Message


Posts: 231
Rank:


Level: Member

Country: en
Location:
Occupation: Project Manager
Age: 37
In-game name: I3lueVein

 
#21 Posted at 2008-08-27 00:20        
     
This worked a charm

Foxy Baby:
; for the intro camera scripting tutorial
; create camera
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]

; point the camera at the player, and place it 2m to the players left,
; 10m to his front and 3m above the ground
_cam camsettarget player
_cam camsetrelpos [-2,10,3]
_cam camcommit 0

; fade in from black over 2 seconds
titlecut [" ","BLACK IN",2]

; wait for 2 seconds for the fade to complete
~2

; move the camera to 5m behind the player, 2m to his left and 0.5m above the ground
; do the move over 10 seconds, and then wait for 2 seconds
_cam camsetrelpos [-2,-5,0.5]
_cam camcommit 10
@camcommitted _cam
~2

; fade out to black over 2 seconds
titlecut [" ","BLACK OUT",2]

; wait for 2 seconds for the fade to complete
~2

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

; fade back in over 2 seconds
titlecut [" ","BLACK IN",2]

exit

However, a problem in MP is, if a player gets into a vehicle the cam points to his last known ground location? Is there anything I need to add to the script so it will follow the "player" even when he gets into a vehicle?

Thanks


Author Message


Posts: 20277
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 41
In-game name: Foxhound

 
#22 Posted at 2008-08-27 15:25        
     
I didn't know this but why not make the script follow the vehicle in which the player is when he entered a vehicle?

Visit my family webshop desteigerhoutshop.nl.

Author Message


Posts: 431
Rank:


Level: Member

Country: pt
Location:
Occupation:
Age: 39
In-game name:

 
#23 Posted at 2008-09-02 21:11        
     
vehicle

_cam camsettarget vehicle player :O_o .


Author Message


Posts: 231
Rank:


Level: Member

Country: en
Location:
Occupation: Project Manager
Age: 37
In-game name: I3lueVein

 
#24 Posted at 2008-09-03 07:55        
     
lol, well what if you want it to look at another player say called "John" As soon as he gets in a car the cam will look at his last known location.


Author Message

Gun  



Posts: 79
Rank:


Level: Member

Country: 00
Location: WhereTheActionIs
Occupation: My life
Age: 36
In-game name:

 
#25 Posted at 2008-09-03 12:59        
     
To make camera follow a unit, even if he is in a vehicle:

#loop
? MyVariable : goto "loop2" ; this line is a check to exit the loop
_cam camsettarget vehicle nameOfUnit
_cam camsetrelpos [x,y,z]
~0.1
goto "loop"
#loop2 ; from here on the script must continue


Obviously you need to set (MyVariable = false) at init.sqs and change this value to "true" with a triger.
Or use a counter, so this should look like this:
MyVariable = 0
#loop
? (MyVariable == 100): goto "loop2" ; loop set to 10 seconds aprox
_cam camsettarget vehicle nameOfUnit
_cam camsetrelpos [x,y,z]
~0.1
MyVariable = (MyVariable + 1)
goto "loop"
#loop2 ; from here on the script must continue



Hope it helps.

This post was edited by Gun (2008-09-03 13:08, ago)


Author Message


Posts: 231
Rank:


Level: Member

Country: en
Location:
Occupation: Project Manager
Age: 37
In-game name: I3lueVein

 
#26 Posted at 2008-09-07 19:18        
     
Thanks alot mate, worked a charm


Author Message


Posts: 27
Rank:


Level: Member

Country: us
Location: FT RUCKER AL
Occupation: U.S. ARMY PILOT
Age: 33
In-game name:

 
#27 Posted at 2008-10-02 20:56        
     
#follow_chopper
_camera camSetTarget chopper1
_camera camSetRelPos [0,-13,50] <-----I added 50 here as the height the chopper flies at, change to the height you make it fly
_camera camCommit 0
~0.01
?(alive chopper1) : goto "follow_chopper"

Tried to use this line but it ends up in the water what am i doing wrong?


Author Message


Posts: 20277
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 41
In-game name: Foxhound

 
#28 Posted at 2008-10-02 21:20        
     
Is "chopper1" present in your mission? Did you place a chopper and gave it a name "chopper1"?

Visit my family webshop desteigerhoutshop.nl.

Author Message


Posts: 27
Rank:


Level: Member

Country: us
Location: FT RUCKER AL
Occupation: U.S. ARMY PILOT
Age: 33
In-game name:

 
#29 Posted at 2008-10-03 01:35        
     
yeah i named it chopper 1 and it still spawns the camera in the water


Author Message

Gun  



Posts: 79
Rank:


Level: Member

Country: 00
Location: WhereTheActionIs
Occupation: My life
Age: 36
In-game name:

 
#30 Posted at 2008-10-03 12:34        
     
Do you created a _camera or a _cam?
ex:
; create camera
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]

_cam camsettarget YourTarget
or
; create camera
_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal", "back"]

_camera camsettarget YourTarget

The name you give to the created camera is important and must be the same.