12p Posted January 9, 2011 Share Posted January 9, 2011 (edited) getAlivePlayers getRandomPlayer These functions can be easily done by using table functions. I think aren't necessary and could be deleted. I know there are some more, but I don't remember them now. --------------------------- set/getPedRotation set/getVehicleRotation Why to use them? There is getElementRotation and setElementRotation! Edited January 10, 2011 by Guest Link to comment
MCvarial Posted January 9, 2011 Share Posted January 9, 2011 No point in removing them when they are already there. Link to comment
eAi Posted January 9, 2011 Share Posted January 9, 2011 I'd agree - I'd deprecate them and remove them in a future version. They're basically just really old functions from before we had written many other functions. Link to comment
12p Posted January 9, 2011 Author Share Posted January 9, 2011 And there 2: setPedRotation getPedRotation This is for Z only but why to use them? You can easily use that with getElementRotation and setElementRotation! Link to comment
DiSaMe Posted January 10, 2011 Share Posted January 10, 2011 And there 2:setPedRotation getPedRotation This is for Z only but why to use them? You can easily use that with getElementRotation and setElementRotation! AFAIK, setElementRotation only has visual effects on peds and players. Link to comment
12p Posted January 10, 2011 Author Share Posted January 10, 2011 set/getVehicleRotation Isn't this the same thing as set/getElementRotation, but for vehicles only? Link to comment
SDK Posted January 10, 2011 Share Posted January 10, 2011 set/getVehicleRotationIsn't this the same thing as set/getElementRotation, but for vehicles only? https://wiki.multitheftauto.com/wiki/SetVehicleRotation They are already deprecated ... Link to comment
Arran Posted January 23, 2011 Share Posted January 23, 2011 Do you know how many problems it would cause for the owners of servers if suddenly half their scripts stopped working because these functions would get removed? Most server owners can't script, and there really isn't much harm in them being there. Link to comment
12p Posted January 23, 2011 Author Share Posted January 23, 2011 Yes but they MUST learn how to script. If not the server is n00b. Aaaand the scripts can be easily fixed if there is that problem. I think you're exaggerating. Link to comment
chaosislife Posted January 24, 2011 Share Posted January 24, 2011 So we need to screw with anyone who doesn't know how to code? Shall we require them to write everything from scratch too? Link to comment
12p Posted January 24, 2011 Author Share Posted January 24, 2011 OMG you don't get me. I mean we should delete them because those are unneeded, but we can make a kind of "useful function" from it (so just we add the few lines that define the function and it will work anyway) There is no need that it be a MTA Built-In function, because, For example: getAlivePlayers can be easily made with the functions: table = {} --table creating getElementsByType getElementHealth table.insert Link to comment
MCvarial Posted January 24, 2011 Share Posted January 24, 2011 I still don't see no point in deleting functions on C++ and then rewriting them in Lua... Link to comment
eAi Posted January 24, 2011 Share Posted January 24, 2011 We've done that before - a lot more of MTA used to be hard coded. For example, the scoreboard used to be in C++, now it's in Lua. Link to comment
12p Posted January 24, 2011 Author Share Posted January 24, 2011 I still don't see no point in deleting functions on C++ and then rewriting them in Lua... I just wanna say 1 thing: Why to use those MTA functions if you can script them (and those functions are so easy to script...)? It would be like SA:MP, using functions like the "driving licenses system" I heard's, it can be done in MTA by scripting, no need it be a built-in function. As easy as that! Link to comment
Recommended Posts