Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   a command wont work for me (https://forums.graalonline.com/forums/showthread.php?t=4322)

KJS 06-09-2001 03:36 AM

a command wont work for me
 
the command
playerleaves doens't work for me...

I say

NPC Code:
//#CLIENTSIDE
if(playerleaves)
enabledefmovement;
//rest of coding



it doesn't enabledefmovement when they leave the level...

I have this script in the npcserver as a class...

grim_squeaker_x 06-09-2001 04:23 PM

Well if you can't get this to work I'd just suggest trying to put an:
NPC Code:
//#CLIENTSIDE
if (playerenters) {
enabledefmovement;
//Rest of coding


to the level(s) where the player leaves too...

KJS 06-09-2001 08:29 PM

yea I know
 
I know that but like
I have this script in the npc server (so it can be warped easly)

I mean because I dont know what outside level I want to have the script for... (I think it might be in a cave)

Admins 06-11-2001 12:03 AM

playerleaves is server-side only,
because there the script runs without
a player in it,
while on client-side npcs are inactivate when
the player is not in the level

May be you could set a client. flag and in the
client-side system-npc (whatever it is) it checks
the flag and calls enabledefmovement


All times are GMT +2. The time now is 01:16 AM.

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