View Single Post
  #11  
Old 11-05-2003, 04:30 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by slimchance11
Is the level in the levels list? I've been having trouble using triggeraction on servers too, your script looks fine, i've been trying things like that too and they never seem to work, I think something with triggeraction on servers has changed o0
This is only to test offline at the moment. I had this same problem a long time ago when I tried to setup player damage since I use my own health system. I can send the triggers, but I can't send two triggers consecutively with parameters in each :/



Quote:
Originally posted by Kaimetsu
Ew, don't put sleeps in loops. And non-prefixed vars are volatile. It's not guaranteed that their values will be preserved between frames.
As already noted its just a crude script, but you're probably right. I put the sleep in there in case there was a problem in that it couldn't break from the for loop. I'm guessing that when an NPC is called or triggered while in any kind of loop it will automattically break to jump to where it has been called or triggered?

I could probably set a string in the loop that contains the ID, but I'm not sure if

NPC Code:

for (this.i=0; this.i<npcscount; this.i++) {
callnpc this.i,<flag>,;
}



will actually use that NPC's ID since what is usually set is somewhere in the thousands range. I haven't tried that yet.
__________________
Reply With Quote