• Draw an entity for specific players but no for the others
    2 replies, posted
Hi Everyone ! I ask if it's possible to draw an entity for specifics players, for exemple, I wan't to create Hyperspace Bridge, but To do that, I need to get All Entities/Props of Ship (Made with GetAllConstrainedEntities) and Draw the ship just for the players who are inside, I have try with (SetNoDraw,PreventTransmit ...) But It's doesn't work. Thanks Before for your answers, and sorry for my English.
You can create a clientside model with the function of the same name(ClientSideModel) for specific players only, or in ENTITY:Draw(), you can set to only draw for certain members of the player.GetAll() table. Another idea would be to just set self:SetNoDraw() to true and set it to false for specific members of the player.GetAll() table, or a player that has a certain NWBool set, or whatever you want to do.
I haven't access to ENTITY:Draw() Because It's an other Scripted Entity who create Hyperspace Bridge, And the players used SBEP ... to build their own ships. For the SetNoDraw(), it's effective to the entity itself, and it invisible for all players no ? I know it's possible Because A server had make Hyperspace Bridge ... (TSCM if you wan't try) but I don't know how they make that.
Sorry, you need to Log In to post a reply to this thread.