Thread: Swords..
View Single Post
  #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