AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] msg_entity (https://forums.alliedmods.net/showthread.php?t=254297)

Process 01-01-2015 10:08

[Solved] msg_entity
 
what is this

Code:
#define    MSG_ONE                     1        // Reliable to one (msg_entity)

i can't undestand 'Reliable to msg_entity' its mean 1 index or what xD ?

tousif 01-01-2015 11:14

Re: msg_entity
 
Please Give full Code

HamletEagle 01-01-2015 11:25

Re: msg_entity
 
No, it means that the message will be send to just one player, you use it with an index. Also, if it's reliable it will crash the server if the message somehow fails, if you use MSG_ONE_UNRELIABLE you avoid a possible crash.

Kia 01-01-2015 12:12

Re: msg_entity
 
At what case you would need a reliable message when you can always use a unreliable to avoid crashes?

HamletEagle 01-01-2015 12:21

Re: msg_entity
 
Maybe when you redo some game code, and the original code use a reliable one, to keep compatibility.

Kia 01-01-2015 13:11

Re: msg_entity
 
Alright, thanks for clarification.

Process 01-03-2015 06:07

Re: msg_entity
 
Thanks 'Solved' !

#HamletEagle

Arkshine 01-03-2015 06:53

Re: [Solved] msg_entity
 
Reliable messages are guaranteed to be sent to players. You would want to use unreliable messages that if skipped that would not be a big deal, like not critical to the gameplay. This could be anything which displays something, like text. This can be also useful in case where if such message is sent often, and client is overflowed with this for some reason, client will be disconnected (server doesn't crash). Of course, it's possible to use always unreliable messages for all, it will be probably fine for most of situations but I would prefer to think twice before to avoid unexpected gameplay glitch.


All times are GMT -4. The time now is 15:20.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.