Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   playerdies flags (https://forums.graalonline.com/forums/showthread.php?t=18907)

btedji 12-14-2001 11:04 PM

playerdies flags
 
how long does the playerdies flag last or exist?

or is there a better way to test if the player dies?

Xaviar 12-14-2001 11:21 PM

Re: playerdies flags
 
Quote:

Originally posted by btedji
how long does the playerdies flag last or exist?

or is there a better way to test if the player dies?

As far as I know, it only lasts for the amount of time it takes to send the event to all the scripts....Just make sure that a if (playerdies) is at the top of one of your hierarchies (sp?)...or, if you can't do it that way...just have an if (playerdies) this.playerdied=1; and then check for playerdied inside your other script....Did that make sense?

btedji 12-14-2001 11:25 PM

Re: Re: playerdies flags
 
Quote:

Originally posted by Xaviar


As far as I know, it only lasts for the amount of time it takes to send the event to all the scripts....Just make sure that a if (playerdies) is at the top of one of your hierarchies (sp?)...or, if you can't do it that way...just have an if (playerdies) this.playerdied=1; and then check for playerdied inside your other script....Did that make sense?

It makes sense, I might try a variation of that.


All times are GMT +2. The time now is 11:58 AM.

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