• Quick SetPos question
    2 replies, posted
Quick question - what does [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetPos]Entity:SetPos[/url] do if you run it clientside? I'm trying to find a function that 'fake-positions' an entity - makes an entity look like it's in a different spot to where it really is - without notifying the server, and I'm not sure if SetPos does this or not. If SetPos doesn't do this, does anyone know a function that might?
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetPos]Entity:SetPos[/url], if used clientside, set the position of the entity only for the client who run it, and doesn't notify the server. But be aware, if the server send the position of this entity after that, this new position will override the client position.
Also note that just not calling SetPos serverside won't guarenteed it won't be updated. Using SetPos JUST clientside will fuck up prediction and physics. Generally, if you want to change the position for one player, create a clientside model copy of the entity in question and hide the actual entity.
Sorry, you need to Log In to post a reply to this thread.