-
Posts
77 -
Joined
-
Last visited
Everything posted by ronaldoguedess
-
Function to identify car collision on a PED ?
ronaldoguedess replied to ronaldoguedess's topic in Scripting
Thank you! -
можете поделиться, как это было сделано, чтобы исправить?
-
I managed to hit all the weapons I need, minus 1. The Sniper is not right without the Zoom she is in a position to give give it totally changes the zoom position. I tried to filter by "if getControlState (" zoom_out ") then" however, is very wrong the way while giving zoom this. if you do not like leave without autoain the sniper, thanks for the help, I could never alone.
-
Understood, but which of these two vars "aimX" should be changed? This? aimX ,aimY = dx*0.54 , dy*0.3971 Or this? _,_,setToX2 = getWorldFromScreenPosition(aimX,aimY,dist) Have managed to do a check for the gun, missing only make the same correction! placed well below the first block of code shown above: aimX aimX = + (10 - 0.2 * dist) and the targeted player to the other side!
-
Now I understand ... I took a print screen's glances with both arms in ped (same place) The position of the crosshair is the same ... and now? How to pick the difference if the two staffs are in the same place? Thanks for helping me! Ow I didn't know that. Calculating offsets for some weapons is time consuming and it would be better if MTA team makes setPedAimTarget for localPlayer as well. This function will not work with players from the server?
-
Thank bandi94, that your script is as close to perfection as I saw .... works exactly as I imagined! However has some minor problems! Rifre, M4, Ak47, is closely wrong. Sniper is not right somehow! The smaller weapons were perfect ... The M4 is right at 29 feet away! Can you filter out the gun, and give different data for each! however want to know if this is possible! WHAT did you say! we do not have all the data we need! Sorry for my english.
-
I tried, but got the same thing ... Somebody help me! I am unsure what to do, tried everything!
-
I have a big problem! Auto aim only works in some angles, note in the video that I did! local X, Y, Z = getElementPosition(localPlayer); local tx, ty, tz= getElementPosition(Ped); local difx = math.floor(tx - X) --distance (X) m local dify = math.floor(ty - Y) --the lateral distance (Y) in meters local difz = math.floor(tz - Z) --distance height (Z) in meters local difr = math.floor(rz - prz) --difference of rotation (Z) in degrees local hx, hy, hz = getPedBonePosition(Ped, 6) setCameraTarget (hx-dify/360-0.5, hy-difx/360, hz-1.4) Help-meee
-
At least we know how to create it there! is expected to launch? you used some function beyond the setCameraTarget? setCameraMatrix? I managed to make the player look ped close to the target, the crosshairs will not put to him, is in the middle of the screen! Thanks for the help, I'm half bad math too so I am suffering to create it!
-
Helpp
-
I did it! By the crosshair does not go to the ped ... what calculation should I do?
-
Need some way to fix the crosshair in "PED". anyone has idea? I was unable to "setCameraMatrix" : (
-
The example that "Den.Snitch" has posted this system "dxDrawcircle". However, now we need some function that makes localPlayer fix the aim and track the "Target Ped" or "Target Player". the MTA should have this function natively!
-
Wow, it worked! He put a circle in the nearest ped me head! Missing only one way to fix the crosshair in PED ... Is not there some way? some function? if not, all this insistence that system will be lost. : (
-
What is the function to fix the camera on target? My difficulty is that I am getting a little long .. I have little knowledge. WHAT can I do with this "processLineOfSight" did not understand the example of the wiki.
-
Thanks for helping me! This "setPedLookAt" function would be perfect, however she is not working. the camera does not move. : (
-
This working! Thanks "SkittlesAreFalling" Thus I take the position of all players, like picking the nearest? only 1? What is the function to set the target? I tried: setElementRotation(player,0,0,TZ) setCameraTarget(player, Value) But it did not work! The player turns around, but not on top of the PED.
-
I'm trying to do here! the beginning did check when the player clicks the button to aim! function funcInput ( key, keyState ) if ( keyState == "down" ) then local x,y,z = getElementPosition( getLocalPlayer () ) -- ok local tx,ty,tz = getElementPosition( source ) -- [b][color=#FF0000]How to get the target?[/color][/b] end end bindKey ( "aim_weapon", "down", funcInput ) -- bind the aim_weapon down key bindKey ( "aim_weapon", "up", funcInput ) -- bind the aim_weapon up key And now? what is the next step?
-
Can you help me with the script? or tell me what functions should I use? I try to do. Thank you.
-
Helpp
-
I did not understand your reply SuperCroz... Is there any way to enable this? I wonder if it is possible to create pro MTA?
-
?
-
Is there any way to make the auto aim? to follow the player? I would create this system in my server as a reward to those who turn "HERO". But I have no idea how to create this function the "Aimbot" anyone have any idea if the MTA allow this? Hugs.
-
Transforming Weapon M4 Semi Automatic?
ronaldoguedess replied to ronaldoguedess's topic in Scripting
? -
Transforming Weapon M4 Semi Automatic?
ronaldoguedess replied to ronaldoguedess's topic in Scripting
I really appreciate if you can post the link! I thought about something like this: if I keep the button pressed, she'll be shooting fire, but with a delay between shots.
