Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-04-2009, 09:59 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
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.

Last edited by devilsknite1; 04-05-2009 at 04:57 AM..
Reply With Quote
  #2  
Old 04-04-2009, 10:07 AM
Schetti Schetti is offline
SC2 Player
Schetti's Avatar
Join Date: Nov 2008
Location: Austria
Posts: 269
Schetti is on a distinguished road
maybe noob suggestion but maybe
PHP Code:
hidesword(); 
__________________
“Peace cannot be kept by force. It can only be achieved by understanding.” – Albert Einstein
Reply With Quote
  #3  
Old 04-04-2009, 10:19 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
Quote:
Originally Posted by Schetti View Post
maybe noob suggestion but maybe
PHP Code:
hidesword(); 
Nothing
I tried that, I forgot to add that though.
Reply With Quote
  #4  
Old 04-04-2009, 10:33 AM
Schetti Schetti is offline
SC2 Player
Schetti's Avatar
Join Date: Nov 2008
Location: Austria
Posts: 269
Schetti is on a distinguished road
how that should work?
as a weapon(means totally delet sword)?
__________________
“Peace cannot be kept by force. It can only be achieved by understanding.” – Albert Einstein
Reply With Quote
  #5  
Old 04-04-2009, 08:32 PM
fragman85 fragman85 is offline
Banned
Join Date: Mar 2009
Location: Switzerland
Posts: 261
fragman85 is on a distinguished road
I think there's a flag in the Control NPC for that :S
Reply With Quote
  #6  
Old 04-04-2009, 09:31 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
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.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #7  
Old 04-05-2009, 04:56 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
Quote:
Originally Posted by napo_p2p View Post
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?
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 03:59 AM.


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