# Exilepilot

Members

6

## Details

• Interests
Programming language syntax, low-level programming, high-level programming languages. Computing, MTA, scripting.

## Recent Profile Visitors

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

0

1. ## [QUESTION] setElementRotation and getCameraMatrix.

You've made my day Thank you very much, I appreciate such a quick reply. When I setCameraMatrix and only specify the position of the camera and not the point it's looking at. Can the point the camera is looking at change? For example I want to change the point the rocket is facing onClientRender. Thank you very much. I'll post results. [EDIT] HMM... I just looked into findRotation and I don't think it's enough. It seems only to be used for setPedRotation which is deprecated... I was looking for something such as: local px, py, pz, lx, ly, lz = getCameraMatrix() --[[ Solution to problem... --]] function getRotationFacingTargetPoint(startPoint, targetPoint) --[[ blah blah blah change rotation to face the point ]] return rx, ry, rz end -- Create projectile and guide it towards lx, ly, lz from px, py, pz. local p = createProjectile(localPlayer, 19, px, py, pz, 1, nil, getRotationFacingTargetPoint(px,py,pz,lx,ly,lz))
2. ## [QUESTION] setElementRotation and getCameraMatrix.

Problem: When given a point P (pX, pY, pZ) how do I set an elements rotation R (rX, rY, rZ) (for example: a rocket projectile) so that the element directly faces the point P? Context: Basically I had an idea for a cruise missile script which involves using the camera matrix and getting the point the camera is directly looking at and setting a rocket projectile's rotation to face it. The idea is to have the rocket's rotation always point where the camera is facing so that eventually the rocket will hit or intersect that point. I have no idea how to solve this problem and I am starting to think nobody does. If anyone knows the solution to this problem could you please explain? [EDIT] The point which the rocket faces may change and therefore the rockets direction needs to change which gives me another question: Does this problem involve velocity as well if the rocket needs to change direction mid-flight? I've tried to explain as clearly as possible. If you need any further context / some sort of example in code please ask. Thanks.
3. ## [SOLVED] MTA doesn't startup after splashscreen

I rebooted, ran MTA and it directed me to this forum post: https://forum.multitheftauto.com/viewtopic.php?t=15151 I patched my GTA:SA and it worked fine.
4. ## [SOLVED] MTA doesn't startup after splashscreen

Previously, I had MTA working fine, everything was working as it should be. Until I rebooted into another OS, then booted back into windows again MTA started playing up. When I open it, the splash screen shows. My disk drive starts reading the GTA disk as it does normally, but then the splash just goes away and MTA doesn't start. But the process it still in the background. TL;DR: MTA doesn't do anything other than display the splash screen and appear in the task manager. MTADiag: http://pastebin.mtasa.com/861580994 I've reinstalled GTA:SA and MTA, don't know why this is happening. Help is appreciated. Also, on a side note. Has anyone had an any troubles with Wine 1.4.1( in Linux ) and MTA before? It says that MTA can't load module 'netc.dll' with error 126. It's in the right directory too.
5. ## A good & safe compiler?

I can only assume he means theft-safe or virus free compiler.
×

• #### Social Media

×
• Create New...