Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Sending objects via triggeraction (https://forums.graalonline.com/forums/showthread.php?t=63222)

ApothiX 01-05-2006 02:27 AM

Sending objects via triggeraction
 
I'm having a problem with sending objects (variables that contain members, I call them objects for lack of a better word) with triggeraction, and was wondering if it is even possible?

An example would be:
PHP Code:

temp.myobject.intmember 5;
temp.myobject.stringmember "WeeEeeEE";
triggeraction(00"serverside""LeetWeapon"temp.myobject


Yen 01-05-2006 03:32 AM

I'm pretty sure it's not possible to send an object with triggeraction.
I've always had to add the members manually. :/

napo_p2p 01-05-2006 04:31 AM

Maybe do
PHP Code:

temp.myObject = new TStaticVar(); 

first to initialize temp.myObject as a 'scriptable object'.

I am not sure if that will make it work though.

Inverness 01-06-2006 02:04 AM

I do not believe that adding a period into the variable name will make any difference if its not in the leader or specifically an Object.

ApothiX 01-06-2006 08:32 PM

Quote:

Originally Posted by Inverness
I do not believe that adding a period into the variable name will make any difference if its not in the leader or specifically an Object.

Oh really? Try this:
PHP Code:

blah.testing 5;
blah.abc "ABCDEFGHIJKLMNOP";
blah.weeobject true;

echo(
blah.getdynamicvarnames()); 


Admins 01-20-2006 04:50 PM

Hmmm may be it should also be possible to have some way for using loadvars/savevars without files


All times are GMT +2. The time now is 12:24 PM.

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