Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-16-2009, 12:28 AM
[email protected] zeektheman2@hotmail.com is offline
SirZeek
Join Date: May 2008
Posts: 37
zeektheman2@hotmail.com is on a distinguished road
Quote:
Originally Posted by [email protected] View Post
Ok, So I scripted a car on my server and it works fine. I have a script to where if you press "f", it will play the horn noise I made. here is the script.

function onKeyPressed() {
if (keydown2(getkeycode("f"), true)) {
playlooped carhorn-1.wav;
}
}


I hear it fine, But I ask other people if they hear it, and they dont. How can I make this to where others can hear my horn noise to?

Please help.

thanks

-jamerson
PHP Code:
function onTimeOut()
{
 if (
keydown2(getkeycode("f"), true))
 {
  
playlooped("carhorn-1.wav");
 }
 
setTimer(0.05);

Try this it should work
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.