Game Development Community

PlayAudio on RTSunit isn't working?

by Kevin · in RTS Starter Kit · 11/11/2004 (10:24 pm) · 3 replies

I'm trying to put some sounds in this awesome RTS kit and get some action.

But I just can't get the playaudio method to work on the RtsUnit.
I use:
%obj.playAudio(0, TrooperShoot);

Does anybody else have the same problem?

Thanks in advance.

Kevin

#1
11/12/2004 (10:17 am)
The playAudio method on RTSUnits is disabled - part of the effort to trim network bandwidth. You should either call it clientside or use the play audio methods on the GameConnection class. Or you could remove the comments I put around the audio unpack code. :)
#2
11/12/2004 (10:31 am)
Oh ic

thanks alot
#3
02/06/2010 (7:37 am)
Where can I "re-enable" the PlayAudio for the RTS Kit ?

I've searched the engine and scripts but cant find a reference --

EDIT:
Un-commenting the pack/unpack stuff wasn't enough it seems ... I just gave up and used play3D sound or such ... that was used in the crossbow .cs file