PDA

View Full Version : Sending objects via triggeraction


ApothiX
01-05-2006, 02:27 AM
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:
temp.myobject.intmember = 5;
temp.myobject.stringmember = "WeeEeeEE";
triggeraction(0, 0, "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
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
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:
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