Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Swords.. (https://forums.graalonline.com/forums/showthread.php?t=84983)

devilsknite1 04-04-2009 09:59 AM

Swords..
 
After using almost everything thinkable, the sword still doesn't disable for me.

I've tried ::

PHP Code:

setsword"");
disableweapons();
disableselectweapons();
replaceani"sword""idle" ); 

Again, the sword is there. Not the gani, but the effects of it exist.

Schetti 04-04-2009 10:07 AM

maybe noob suggestion but maybe
PHP Code:

hidesword(); 


devilsknite1 04-04-2009 10:19 AM

Quote:

Originally Posted by Schetti (Post 1480828)
maybe noob suggestion but maybe
PHP Code:

hidesword(); 


Nothing :(
I tried that, I forgot to add that though.

Schetti 04-04-2009 10:33 AM

how that should work?
as a weapon(means totally delet sword)?

fragman85 04-04-2009 08:32 PM

I think there's a flag in the Control NPC for that :S

napo_p2p 04-04-2009 09:31 PM

Replacing the ani is a good start, but then you would need to use hidesword(). Keep in mind, though, that hidesword() takes a parameter (the number of seconds to hide the sword).

Try something like:
PHP Code:

hidesword(1); 

Every time the sword button is held down.

devilsknite1 04-05-2009 04:56 AM

Quote:

Originally Posted by napo_p2p (Post 1480990)
Replacing the ani is a good start, but then you would need to use hidesword(). Keep in mind, though, that hidesword() takes a parameter (the number of seconds to hide the sword).

Try something like:
PHP Code:

hidesword(1); 

Every time the sword button is held down.

Would I use that in a timeout or when the player tries to activate the sword?

So, say I tried to do this:

PHP Code:

//#CLIENTSIDE

function onCreated()
{
  
onTimeOut();
  
setTimer0.05 );
}

function 
onTimeOut()
{
  
hideSword);
  
replaceAni"sword""grab" );
  
setTimer0.05 );


This would completely remove the sword? Also, frag, I never saw anything about a Control NPC flag disabling the sword o.o. Shed some light, please?


All times are GMT +2. The time now is 08:23 PM.

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