Moderators IIYAMA Posted May 16, 2013 Moderators Share Posted May 16, 2013 How can I check if a player doing an animation. With server side, without triggering, because I need to know it at that moment. -- client https://wiki.multitheftauto.com/wiki/GetPedAnimation Link to comment
xXMADEXx Posted May 16, 2013 Share Posted May 16, 2013 ... im pretty sure that triggering a client event is the only way. Link to comment
Moderators IIYAMA Posted May 16, 2013 Author Moderators Share Posted May 16, 2013 ok, to bad. thanks for the replies. Link to comment
iPrestege Posted May 16, 2013 Share Posted May 16, 2013 Maybe you can make a function and set a data using the setElementData function and if getElementData then get this function results and when you need to use it just check for the data . Link to comment
Moderators IIYAMA Posted May 16, 2013 Author Moderators Share Posted May 16, 2013 Yes possible I was also thinking about that, but I don't want to damage my very stable data management of my gamemode. It hurts me every time when elementdata is a answer on a question while designing a lagg free gamemode, you know what I mean? I have seen what elementdata did to some servers and I don't get happy about it. Like as sample the server mini missions, I have no idea how much they use it, but I get the feeling that it is a lot. Teleporting players all the time. -_-" Link to comment
DiSaMe Posted May 16, 2013 Share Posted May 16, 2013 Don't use element data for this. Trigger the event instead to avoid the exponential growth of bandwidth usage as player count increases. Link to comment
iPrestege Posted May 16, 2013 Share Posted May 16, 2013 Maybe they have a problem or errors with the data, but if you use it properly there is no problem as far as i know and am using a data with my game mode and i use the data in all my resources and every thing fine but maybe this function make some lag -.- any way it's your option . Link to comment
denny199 Posted May 17, 2013 Share Posted May 17, 2013 Just trigger it. There's no need for element data.. IDK what you are trying to make. [maybe we can request getPedAnimation on server side] Link to comment
Moderators IIYAMA Posted May 17, 2013 Author Moderators Share Posted May 17, 2013 It is more that I already created some stuff. - Gamemode, anti control binding, animations. - Anti lagg, server damage and controlling player sync's - Vehicle weapons. But they can conflict each other and now I try to minimize that. Problem solved by exporting animation progress from script to script. Link to comment
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