Jump to content

Swimer

Members
  • Posts

    27
  • Joined

  • Last visited

About Swimer

  • Birthday February 17

Details

  • Gang
    Powell
  • Location
    Ukraine
  • Occupation
    Guy
  • Interests
    Programming, gaming

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Swimer's Achievements

Advanced Member

Advanced Member (8/54)

3

Reputation

  1. I give you a BIG thank you! I've been struggling with this problem for 4 days now! You helped me a lot, I thank you!
  2. I created rockets (type 20) using the createProjectile function. But the force in this function only affects throwable objects. Setting velocity at launch or during flight is also useless. Perhaps it makes sense to set the velocity forcibly when calling the function (the last 3 arguments, before the last), but in this case, you need to somehow calculate the velocity for x, y and z. If my version is the best, then you can tell me how to calculate the velocity relative to 2 points. I suppose that I need to get the direction (for example, up: 0, 0, 1, left: 1, 0, 0, etc.) and this direction will be the desired velocity, but I tried this option, although it did not work: local x1,y1,z1 = 1, 2, 3 -- for example local x2,y2,z3 = getElementPosition(object) local directionX, directionY, directionZ = x1 - x2, y1 - y2, z1 - z2 createProjectile(localPlayer, 20, x1, y1, z1, 1, object, 0,0,0, directionX, directionY, directionZ) When using this method, the rocket simply flew somewhere (with the inversion of direction, roughly speaking, the same thing) There is an option to simply launch a regular missile (NOT homing) at the player's position (or a little further), but such a missile is incredibly easy to dodge by gaining the height of the fighter. POSSIBLY, I could implement this if I could change the flight path (for example, a callback when flying each unit up, with the ability to change the trajectory, but if I'm not mistaken, such a callback cannot be done) Let me remind you, I just need to increase the speed of the rocket
  3. Swimer

    2 hydra models

    With weapons, everything is clear, with a crash question. I can assume that the hydra can change the flight mode (horizontal, vertical) and the models are designed for this. Or the game is trying to get aircraft parts that are not in the hydra model (or vice versa).
  4. How do I create a new model, and give it the properties of a hydra. Or is there another way? I have several models that replace the hydra. I tried to replace other models of air vehicles with them, but when spawning some, the game immediately crashes, some explode on spawn due to their height and then crash, and some crash when the plane crashes into an obstacle (explosion). I don’t care about the physics of other aircraft, so can I somehow simply transfer the properties of the hydra to other aircraft models?
  5. No, I haven't tried it yet. This function is on the wiki site itself, but nevertheless when I started googling I didn't find anything
  6. I have a point of my object that needs to be rotated towards another, considering all 3 directions (3D). This, I understand, needs to be solved mathematically.
  7. I have already migrated the inventory system to Jquery-UI Draggable/Droppable
  8. I made my own inventory system, but the problem is that in a normal browser, all objects are transferred perfectly, and nothing happens in the game. Please tell me, is it possible to fix or do my Drag'n'Drop system?
  9. The fact is that I have been selecting the rotation values for an hour and I always get something like this: https://imgur.com/a/Og3pSf8 It turns out that the rotation of 2 axes leads to one
  10. I just copied the code from the MTA documentation, but it doesn't work. Here is the code: *Screenshot* The script registered in meta.xml (client side). Added YouTube to the white list in the MTA settings. And in the end, nothing appears on the screen.
  11. can it be used for my purposes? So that the function returns a string exactly when it was called?
  12. I need to get the result of a server function from an event handler. local plTeam = getPlayerTeam(localPlayer) if plTeam then if isPlayerInTeam(plr, plTeam) then local friend = getPlayerFriend(plr) -- Execute server-side function "getPlayerFriend(player)" text = friend.." ["..id.."]" end end
  13. I'm sorry if I chose the wrong category I know that in regular GTA you can change the physics by replacing the handle.cfg file. How to do it on MTA? And yes, it is also necessary that the client does not replace files manually. I need to change the aircraft physics, as the same hydra can fly in the air at the player's running speed. And it is desirable that these parameters be in the file.
  14. Aahahahahah. Nice. Topic closed. Thank you
  15. I need to get an object that is in front of the camera, but since GTA is a third-person game, the player’s neck or head is almost always in front of the camera, so I need ray to skip my player and continue moving on.
×
×
  • Create New...