Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   GS2: onObjectCreated( obj )? (https://forums.graalonline.com/forums/showthread.php?t=66831)

JustBreathe 06-22-2006 01:25 PM

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");
  } 


excaliber7388 06-22-2006 02:59 PM

Couldn't you just have that in a created block in the object's script?

JustBreathe 06-22-2006 03:03 PM

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.


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

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