mob
login()
world<<sound('music.wav',1)
cause i tried it but it wont work
ID:273829
![]() May 28 2011, 6:13 pm
|
|
how would i code this
mob cause i tried it but it wont work |
![]() May 28 2011, 11:36 pm
|
|
"When you're ready to play the sound, just send it to a player like so:"
|
That's the same thing he's doing up there. But he's not storing the sound object in a variable which should be fine as long as he doesn't hope to access it anymore. It's just that I'm not sure if that's the actual code he's putting in. login() is not an actual proc Login() is though.
|
Try something like this:
mob ..() basically calls the parent proc so the player logs in correctly and login() does not exist.E EDIT: Removed world, didn't catch that :O |
I would also like to point out that in the original code the attempt to send the sound to world (If it were coded properly) might cause a few issues for people who are still hearing the sound from before. If you want to send a sound to world, make sure you either null the sound of everyone in world before, then have it play again, or make the people in world exempt from hearing the music play again (Which means you pretty much just want to send the sound to the src.)
|
mob This will play only to the mob that logs in...each time a new character logs in it will play for the new character and will continue playing until they close the game or you ouput: usr <<sound(null) |
i have one weird problem though when i put in mob/login() it always makes me have a black map but without it map loads fine
mob/Player What am i doin wrong exactly |