Hyper.nl Unreal Services Forum Index Hyper.nl Unreal Services
The forum of Hyper.nl Unreal Services and the semi-offical resource for Winged Unicorn's Unreal mods
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MUTATOR HELP PLZ! :-)

 
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk
View previous topic :: View next topic  
Author Message
BrakeDanceJ



Joined: 16 Sep 2004
Posts: 1
Location: Chicago

PostPosted: Sun Jan 23, 2005 9:37 pm    Post subject: MUTATOR HELP PLZ! :-) Reply with quote

I cannot seem to get this to work. The sound wont play, i get an error with that in UnrealEd. and when i comment that out, it still wont write to the log or anything. Some1 please help, im a real noob uscripter

Code:

//=============================================================================
// Anouncer1.
//=============================================================================
class Anouncer1 expands Mutator;


#exec AUDIO IMPORT FILE="Sounds\welcome\welcome.wav" NAME="WelcomeSound" GROUP="welcome"

function PostBeginPlay()
{

log( "=========================" );
log( "== Announcer Mutatator===" );
log( "www.UnrealDestination.com" );
log( "=========================" );
//Owner.PlaySound(WelcomeSound, SLOT_None, 0.1*Pawn(Owner).SoundDampening);

ConsoleCommand("say **Welcome to an UnrealDestination.com Server**");
}

thnx,
BrakeDanceJ

_________________


Before you criticize someone, you should walk a mile in their shoes.That way, when you criticize them, you're a mile away and you have their shoes.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Zombie



Joined: 27 Jan 2004
Posts: 295

PostPosted: Tue Jan 25, 2005 5:54 am    Post subject: Reply with quote

I'm a bit tired to work out some uscript for you so I'll just give a few tips.

The way you are calling PlaySound it would require the mutator to be owned by something. Plus, the mutator would process PostBeginPlay() long before any player connected on the server to hear the sound or see that "Say" command message. I suggest either aquiring a spawning player using Mutator's CheckReplacement or using a Timer + PawnList 'for' loop to poll for new players entering the server. You also said it never printed that text in the log right? Make sure to run it as a ServerActor if it doesn't use CheckReplacement/IsRelevent, or from a command-line start if it does. Remember to include your mod as a ServerPackage for clients to receive the sound file too.


-Zombie
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group