SolideRock Posted August 23, 2016 Share Posted August 23, 2016 السلام عليكم ورحمه الله وبركاته شباب بدي كود اقدر اجيب ال Rotation وانا واقف مكاني يعني اكتب كوماند باف8 يجيب لي ال Rotation حقي Link to comment
SolideRock Posted August 23, 2016 Author Share Posted August 23, 2016 دخلت الويكي بس مالقيت مثال ! Link to comment
SycroX Posted August 23, 2016 Share Posted August 23, 2016 (edited) دخلت الويكي بس مالقيت مثال ! </strong></p>\n<pre class=\"prettyprint lang-lua ipsCode\">function onPlayerTargeted ( targetElem ) \n if ( isElement(targetElem) and getElementType (targetElem) == \"player\" ) then \n local x,y,z = getElementRotation ( targetElem ) \n outputChatBox ( \"Target player rotation: \" .. x .. \" \" .. y .. \" \" .. z ) \n end \nend \naddEventHandler ( \"onClientPlayerTarget\", root, onPlayerTargeted ) \n</pre>\n<div></div>\n<p><strong> http://prntscr.com/c9gg4q Edited August 23, 2016 by Guest Link to comment
SolideRock Posted August 23, 2016 Author Share Posted August 23, 2016 كان قصدي بكوماند !! Link to comment
SycroX Posted August 23, 2016 Share Posted August 23, 2016 كان قصدي بكوماند !! addCommandHandler("getRot", function(Player) local RotX, RotY, RotZ = getElementRotation(Player) outputChatBox("Your Rotation is : "..RotX..", "..RotY..", "..Rotz.."", Player, 255, 255, 0, true) end) 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