Hello everyone,
it’s so great to see a modding community for RtCW is still active. After playing the game for ages I finally decided to try out GTK Radiant myself. Running v1.4 as I had some issues with the later versions in Windows 10.
I’ve just been playing around with simple test maps so far, trying out the various features. Right now I’m trying to figure out how to play a custom sound via a script.
I placed a .wav file in <base>\Main\sound\my_sound.wav (the sound directory wasn’t there so I created it).
Then, for my map, called testmap, I set up a testmap.ai file in the maps directory.
player
{
trigger play_custom_sound
{
playsound sound/my_sound.wav
}
}
In the map there’s a target_script_trigger with a “target” value of “play_custom_sound”, and an “ainame” with value “player”. That target_script_trigger is linked to a trigger_multiple brush.
As soon as I walk up to it, the game crashes immediately.
I tried using some other command, e.g. “changelevel escape1 persistant” instead of “playsound”, and it works just fine.
Do the wav files need to be in a specific format? I’m clueless as to what’s wrong here. Are there log files I can look at that contain information about the last crash?
Thanks in advance,
Marty