Blockland Forums > Modification Help

Need a way to get the OBJECT that triggered an event, not the CLIENT.

Pages: << < (3/3)

Port:


--- Quote from: Lugnut1206 on May 09, 2012, 11:52:54 AM ---The problem here is that by attaching the end argument to registeroutputevent, i'm getting the client that triggered the event
in this case, the owner of the bot
this doesn't help me, because i'm turning around and getting the player from the client, which is the real player

I need to get the OBJECT that triggered the event, not the client from the object

--- End quote ---

use bots with clients then

Lugnut:

someone explain this black magic to me

Port:


--- Code: ---%cl = new AIConnection()
{
name = "dummy";
bl_id = -1118;
};

%cl.player = new AIPlayer()
{
datablock = playerStandardArmor;
client = %cl;
};

--- End code ---


Lugnut:

back up a second

can i apply this magical aiConnection to the already existing bot?


calling dump on a gameConnection will give me all the possible variables associated with a new aiConnection, yes?

Port:


--- Quote from: Lugnut1206 on May 09, 2012, 12:06:13 PM ---calling dump on a gameConnection will give me all the possible variables associated with a new aiConnection, yes?

--- End quote ---

just do

new AIConnection("whatever").dump();whatever.delete();

Pages: << < (3/3)

Go to full version