Moderators IIYAMA Posted January 18, 2013 Moderators Posted January 18, 2013 Can "get/is" server functions cause instable ping? Possible ? Because I use "3" t/m "5" get/is functions: (2 players, hitelement is also player) player and attacker isPedInVehicle ( attacker ) getElementPosition(attacker) getElementPosition(hitElement); getElementRotation ( attacker ) ( getControlState ( attacker,"fire" ) ) getElementType(attacker)=="player" getElementType(hitElement) =="player" isPedChoking ( hitElement ) getPedRotation(hitElement) getPlayerPing(hitElement) isPedDucked ( hitElement ) isElement(player) -- not always getPedContactElement ( player )-- not always getPlayerTeam(attacker) -- not always getPlayerTeam(player)-- not always getPedArmor(player) -- not always Do they cause client lagg? Note: the script that use these functions get executed very much. at last a set function: setElementHealth() Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
manawydan Posted January 18, 2013 Posted January 18, 2013 timer? "Querer não é poder, mas tentar é avançar"!
Moderators IIYAMA Posted January 18, 2013 Author Moderators Posted January 18, 2013 timer? My qwestion is: do server "get" functions cause client ping lagg? Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Anderl Posted January 18, 2013 Posted January 18, 2013 I don't think so, at least I never experienced any higher pings than the normal with these functions. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now