Blockland Forums > Modification Help

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

Pages: << < (2/3) > >>

Wordy:

So basically you're wanting the client's player object?

Treynolds416:


--- Quote from: Wordy on May 08, 2012, 09:07:40 AM ---So basically you're wanting the client's player object?

--- End quote ---
Not necessarily. It could be a bot or a vehicle or a projectile, and none of those have clients.

Destiny/Zack0Wack0:


--- Quote from: Treynolds416 on May 08, 2012, 12:03:21 PM ---Not necessarily. It could be a bot or a vehicle or a projectile, and none of those have clients.

--- End quote ---
Projectiles have clients. Vehicle (and bots - they're the same thing) have brick groups, which have clients (when their owner is on the server, you can use an AiConnection hopefully if you really need a client).

Treynolds416:


--- Quote from: Destiny/Zack0Wack0 on May 09, 2012, 03:37:38 AM ---Projectiles have clients. Vehicle (and bots - they're the same thing) have brick groups, which have clients (when their owner is on the server, you can use an AiConnection hopefully if you really need a client).

--- End quote ---
I had no idea
This should be easy then, lug

Lugnut:

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

Pages: << < (2/3) > >>

Go to full version