
12-30-2005, 02:41 AM
|
|
Delteria Management
|
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
|
|
Quote:
|
Originally Posted by excaliber7388
here's the script im using, still will not work X_X probably something stupid....as usual
|
Try this for starters:
In the weapon - Make your code easier to read, and more organized, such as doing:
HTML Code:
if (mousedown)
{
if (this.inuse == 0)
{
if (strequals(#w,Force Field))
{
this.inuse = 1;
timeout = 0.05;
}
}
else
{
this.inuse = 0;
timeout = 0;
}
}
- Don't use sleeps in a timeout (or even at all)
- Your timeouts should be put together (like I did above with the mousedown)
- I do not recommend doing a triggeraction to the server in any fast-moving timeout, it can (and probaby will) cause a decent amount of lag!
In the class - triggeractions do not work that way in classes
- It would be better to just set the 5 second timeout on the serverside end, and just do if (timeout) destroy; instead of relying on the client to send a triggeraction
|
|
|
|