Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-09-2001, 03:36 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool 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...
__________________
Thanks,
-KJL
  #2  
Old 06-09-2001, 04:23 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
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...
__________________

  #3  
Old 06-09-2001, 08:29 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool 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)
__________________
Thanks,
-KJL
  #4  
Old 06-11-2001, 12:03 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:51 PM.


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