Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
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
  #17  
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
  #18  
Old 12-08-2009, 04:44 PM
Dnegel Dnegel is offline
Rjax Shizibz
Join Date: Jul 2009
Posts: 1,334
Dnegel will become famous soon enough
Ahhh, finally someone wrote something * Puts hands togheter *

Great respond to.

Well, I guess your right, because you know this more than me. But I have actually read alot, but I guess I didn't have it all scheduled.

Now I got it all scheduled though, and I will actually find scripts lines that works.

Im starting fresh again.
Reply With Quote
  #19  
Old 12-08-2009, 05:09 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by Dnegel View Post
and I will actually find scripts lines that works.
If you only ever take lines of code without ever understanding how they work, you will just become another player world parasite destined to detriment future development. Read the Graal Bible, read the tutorials out there and learn to help yourself.

The graal forums do not support parasitic developers very long....Jigga is a good example of this.
Reply With Quote
  #20  
Old 12-08-2009, 05:23 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Important thing to note: Do not have a space before the parenthesis.

setani ("mp7-fire",""); will invoke the GS1 form and attempt to set your ani to ("mp7-fire".gani

Remove the space so it becomes: setani("mp7-fire","");
Reply With Quote
  #21  
Old 12-08-2009, 07:57 PM
Dnegel Dnegel is offline
Rjax Shizibz
Join Date: Jul 2009
Posts: 1,334
Dnegel will become famous soon enough
Ahhh, thank you very much Riot for that fix.

And to you Twinny, I have read the tutorials.
Reply With Quote
  #22  
Old 12-10-2009, 12:06 PM
Samposse Samposse is offline
Chopa Shopa !
Samposse's Avatar
Join Date: Nov 2008
Location: Norway
Posts: 87
Samposse is an unknown quantity at this point
Send a message via AIM to Samposse Send a message via MSN to Samposse
Quote:
Originally Posted by Dnegel View Post
Ahhh, thank you very much Riot for that fix.

And to you Twinny, I have read the tutorials.

ye, i did to but didnt understand it so mutch
__________________
Delitto :3

A
SERVER
UNDER
CONSTRUCTION !

feel free to ask me about delitto
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:23 PM.


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