Help me, please :((!

Posted by conanphamtuan
How to let objects invisible in enemies'clients (just me and my team can see)~ Or some statements in event draw which enemies can't see~O~
P/S : I;m not good at English.~~~
Let see my pic:

Replies (2)

Last message on 3 Jul 2016

Size43 (Administrator) on 3 Jul 2016, 22:24:35
Use something like this:

if gms_team_player_is_friend(owner) 
    // Draw things

"owner" is a special variable that's set on all synchronised instances. It contains the playerID of the player that created the instance. gms_team_player_is_friend can then be used to check if this player is on the same team as you.
Shaddovv on 29 Jun 2016, 14:09:58
gms_instance_sync_destroy_silent ( instance )

Destroys the instance instance, which has been synced with is_full, without sending this to the other clients.