Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-06-2007, 10:53 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by Knightmare1 View Post
like i said, i did gs1, so i still use if (playerdead).
can someone help? heres script.
PHP Code:
//#CLIENTSIDE
function onCreated() {
  if (
playerdead)
    
setlevel2("hospital.nw");
    
sleep(3);

setlevel2(); is clientside.

You should check for the event of when the player's dying. Like onPlayerDies().

Then you should trigger the server to set the level.

Also, setlevel2's syntax is:

setlevel2(level name as String, x as float, y as float);

:P
Reply With Quote
Reply


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 05:11 AM.


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