Search the Community
Showing results for tags 'rotation'.
-
Hello dear friends, I had an idea to create some idea related to the rotation of the element, let's say the dxDrawRectangle of the plate by 180 degrees and at the same time with a clear rotation effect! below is an example, this effect is needed on the player's reflection of this plate, namely...
-
Hello, I would like to know how to set npc rotation towards the player (To NPC just look at the player) preferably using the command "getElementPosition" (client resource)
-
I decided to dive into the world of rotations. I know this might be incomplete and even incorrect: function openCapo() local theVeh = getPedOccupiedVehicle(localPlayer) local value1 = guiScrollBarGetScrollPosition(caposcroll) if theVeh and value1 then setVehicleComponentRotation (theVeh,...
-
Olá senhores. Bom, estou precisando fazer um objeto apontar para outro como se ele estivesse fazendo um Look At. Mas não sei como calcular o ângulo da rotação Z com base nas posições. Exemplo. Objeto A está na posição 0, 0, 0. Objeto B está na posição 1, 1, 0. Ilustrações:...
-
Hello! I have question: "Is possible to create a rotation of image made by "dxDrawMaterialLine3D ?? "". Please fast return message.
- 1 reply
-
- dxdrawmaterialline3d
- pomoc
- (and 4 more)
-
Hello forums! I've been working on a project of mine, and I'm in need of a function which is similar to getPositionFromElementOffset (scroll down to examples). I can't wrap my head around matrices at all, and I would love to have a similar function, but with rotations instead (getting a rotatio...
- 3 replies
-
- useful
- getpositionfromelementoffset
- (and 6 more)
-
I'm working on a type of RTS camera style and I encounter a problem. The camera can rotate on the same axis without problem, it can zoom and thats about it, but it needed to be looking at an element. Now I'm working on a freecam mode where by getting to the edges of the screen you can move to nor...
-
Hello again, I'm trying to spawn the player onto an element. This element has a non-fixed rotation. I'm just wondering if the function getPointFromDistanceRotation isn't enough to do this? Player details can be found here and the ships details are here I'm currently using this sn...
-
Hi all, I'm in search for a component/library having positioning controls like on the pic shown. Here's a samp's "Attached object editor" screenshot, but I've seen the same solutions being 100% lua-implemented on several MTA (many of them were not that "professionally built") servers, this...
-
hi guys i have a problem to set ped rotation like player rotation always i mean if you change yor rotation the ped change his rotation too sorry for bad English here is the code local pylonid = 2662 local pylon_x, pylon_y = 0, 0.5 local pylon_c, pylon_v = 0, 0 local pylonhe...
-
السلام عليكم المشكلة باختصار انه انا اريد اسوي بيد (ped) واخلي الروتيشن حقه مثل الروتيشن حق اللاعب يعي يتغير باستمرار قصدي من يفتر اللاعب يفتر معاه البيد يعني من يغير اللاعب الروتيشن حقه ابي يسوي البيد setElementRotation(thePed, (getPlayerRotation (thePlayer) ) ) بس ح...
-
Hi! 1. Question: I Would like to ask, how could i set the vehicle rotation (facing angle) in my vehicle spawning command? So i want to set vehicle rotate to my Character Facing Angle Rotation.. I'm literally newbie with LUA language. This is my first command: addCommandHandler("sv...
-
Good evening fellows, Recently, I've been trying to find the rotation of one part or side of a random object but I couldn't really find the function or the way to do so therefore I'm stuck. If you did not understand the idea, I'll explain it below; A cube is made of 6 sides or faces,...
-
Hey there, is there anyway to get an element bounding box with its rotation? How to do it? Thanks for reading and hope you can awnser my question. Edit: Is posible to get it when an element is not streamed?
-
Hey, anyone knows how to make the function https://wiki.multitheftauto.com/wiki/GetElementBoundingBox work with a rotated vehicle/object? If I get the position of a vehicle and add the values returned by this function, they are only at the correct position if the vehicle isn't rotated....
- 14 replies
-
- getelementboundingbox
- vehicle
-
(and 1 more)
Tagged with:
-
Hi! I want to create a fuel system. But I don't know how to calculate the cap's position. I know, that I can do it with getElementPosition, getElementRotation and Offset. But how?
-
Why does the setElementAttachedOffsets (in server side) not work? i got no debugscript client function onEnter2(player,seat) local model = getElementModel(source) if player == localPlayer and (model == 602) and seat == 0 then local veh = getPedOccupiedVehicle(localPlayer) local x,y,...
-
I have a big problem with this code. When i enter a vehicle then the camera is attaching, and the free cam is also working. But when i rotate the vehicles x position 180 degree then the camera is at the same position. I want to attach the camera to a fix point on the vehicle. So my problem is that i...