Forum Jump :

Author Message


Posts: 1
Rank:


Level: Member

Country: us
Location: North Carolina
Occupation:
Age: 26
In-game name:

 
#1 Posted at 2013-06-23 19:23        
     
I apologize if this has already been asked but, for the life of me, I can't find it anywhere. Therefore, if you know where I can find the answer to this, a link would suffice.

Anyway, my question is how do you make it so that when you enter a certain vehicle, it starts playing a specific song? I've finally gotten the music to work with triggers, but I can't seem to find anything that would let me play it only when someone enters a certain vehicle.


Author Message


Posts: 20726
Rank:


Level: Super Admin

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

 
#2 Posted at 2013-06-23 19:58        
     
mission editing questions belong in the ........... mission editing section. I really thought that would speak for itself. Topic moved.


Advertisement


Author Message


Posts: 250
Rank:


Level: Member

Country: ca
Location:
Occupation:
Age:
In-game name: austinXmedic

 
#3 Posted at 2013-06-23 21:40        
     
# UnseenStealth : I apologize if this has already been asked but, for the life of me, I can't find it anywhere. Therefore, if you know where I can find the answer to this, a link would suffice.

Anyway, my question is how do you make it so that when you enter a certain vehicle, it starts playing a specific song? I've finally gotten the music to work with triggers, but I can't seem to find anything that would let me play it only when someone enters a certain vehicle.

Try this...

music.sqf:
_vcl = vehicle player;
if (vehicle player == urvehicleclassname) then {
_vcl say "urmusic";
} else {
hintsilent "";
};
the silent hint is just there because I can't think of anything to put in there atm...

dont put the .ogg extension behind urmusic...
Not tested, just something i came up with off the top of my head ^^

This post was edited by austin(medic) (2013-06-23 21:52, ago)

Some of my work:
http://steamcommunity.com/sharedfiles/filedetails/?id=287343671 -- Unit Play/ Unit Capture Functions Guide
http://steamcommunity.com/sharedfiles/filedetails/?id=265454265 -- Zeus Guide
add me on steam: austin_medic





Tags: Custom Music