Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-22-2006, 01:25 PM
JustBreathe JustBreathe is offline
Registered User
Join Date: Jun 2006
Posts: 59
JustBreathe is on a distinguished road
GS2: onObjectCreated( obj )?

Is there a way to have more events in the server, such as:

PHP Code:
// On Control-NPC
function onObjectCreatedobj )
  {
  echo( 
obj.name @"["obj.objectType() @"]: created.");
  } 
The problem with that is... TGraalVar IS an object, so... You'd probably have a lot of triggers if you set strings.

Usage:
PHP Code:
// On Control-NPC
function onObjectCreatedobj )
  {
  
obj.join("global");
  } 
Reply With Quote
  #2  
Old 06-22-2006, 02:59 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Couldn't you just have that in a created block in the object's script?
Reply With Quote
  #3  
Old 06-22-2006, 03:03 PM
JustBreathe JustBreathe is offline
Registered User
Join Date: Jun 2006
Posts: 59
JustBreathe is on a distinguished road
Quote:
Originally Posted by excaliber7388
Couldn't you just have that in a created block in the object's script?
Yes, potentially, I could.

This is more generalized/global, however... And it would permit a lot more power to the engine.
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:37 PM.


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