send a var to a client who don't create entity

Posted By: anfuncy

send a var to a client who don't create entity - 11/02/06 07:20

Hi, all.
I want to send a var to a certain client.
I know send_var_to, but the client don't create any entity,
is it possible to send a var to the clint?
Thanks
Posted By: Excessus

Re: send a var to a client who don't create entity - 11/02/06 09:39

No, not if you want to send it only to that client. As a solution, just create an invisible and passable dummy entity from that client.
Posted By: anfuncy

Re: send a var to a client who don't create entity - 11/02/06 11:06

Thanks
I will try it
Posted By: Damocles

Re: send a var to a client who don't create entity - 11/02/06 11:12

This is one of the strange things Conitec did:

that the send_var_to is bound to an entity, not
a client-ID.

This should be changed !
In a way, that clients get an ID number or another type of ID,
so that the server can communicate with exactly this client.

So even if you create no global entites (all local, communication only by variables/arrays)
you are forced to create at least one global entity.
Posted By: Excessus

Re: send a var to a client who don't create entity - 11/02/06 11:25

Yes you are right. JCL sayd he will allow send_var_to to take a clientID as parameter instead of an entity. This is part of the multiplayer improvements on the forecast.
Posted By: anfuncy

Re: send a var to a client who don't create entity - 11/02/06 12:48

That's good news.
hope the new type of send_var_to can be presented to the public
as quickly as possible
© 2023 lite-C Forums