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 12-06-2009, 01:29 PM
Dnegel Dnegel is offline
Rjax Shizibz
Join Date: Jul 2009
Posts: 1,334
Dnegel will become famous soon enough
Ahhh, many thanks for that reminder.

Im thinking about making a script, when you press a button, you shoot.

Im currently now sitting left with this, but the ani wouldnt show, im sure it's something to do with the
if (buttonpressed) (d); .

PHP Code:
//#CLIENTSIDE

function onCreated()
{
  
functionTest();
   if (
buttonpressed)(d);
   
setani ("mp7-fire","");


Last edited by Dnegel; 12-06-2009 at 01:42 PM..
Reply With Quote
  #2  
Old 12-07-2009, 10:21 PM
Sage_Shadowbane Sage_Shadowbane is offline
Graal Developer
Sage_Shadowbane's Avatar
Join Date: Mar 2004
Posts: 585
Sage_Shadowbane will become famous soon enough
Quote:
Originally Posted by Dnegel View Post
Ahhh, many thanks for that reminder.

Im thinking about making a script, when you press a button, you shoot.

Im currently now sitting left with this, but the ani wouldnt show, im sure it's something to do with the
if (buttonpressed) (d); .

PHP Code:
//#CLIENTSIDE

function onCreated()
{
  
functionTest();
   if (
buttonpressed)(d);
   
setani ("mp7-fire","");

You do know that making up your own events isn't going to work, correct? Like almost everyone has already told you, stop trying to depend on us. It's pretty obvious that you haven't even attempted to learn Gscript or you wouldn't be posting silly things like if (buttonpressed)(d);. That doesn't exist, and I'm pretty sure that it never will. So please, go and try to take atleast 10 minutes out of your time and read some scripting tutorials that are posted everywhere on these forums, than come back with a half way reasonable script which we can attempt to help me with. As for your script atm:

PHP Code:
//#CLIENTISIDE
function onKeyPressedkeycodekeyname ) {
  if ( 
keyname == "D" ) {

    
setani ("mp7-fire","");
  }

Something along the lines of that would be more suitable for what you're looking for. But please, don't just use the script I've posted for you, go and edit it adding two lines, than coming back here and asking for help again.
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 02:42 PM.


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