View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009500 | Multi Theft Auto : San Andreas | Scripting | public | 2016-12-20 09:46 | 2016-12-21 05:43 |
Reporter | AfterAll14 | Assigned To | ccw | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | MTA:SA | OS | windows | OS Version | 7 |
Product Version | 1.5.3 | ||||
Target Version | 1.5.4 | Fixed in Version | 1.5.4 | ||
Summary | 0009500: attachElements doesn't work for camera in non-zero dimensions | ||||
Description | attachElements(getCamera(), someVehicle, x, y, z) returns "false" in any dimension except 0. | ||||
Steps To Reproduce | You can reproduce it using runcode:
| ||||
Additional Information | attachElements is the only way to make properly-working custom cameras for vehicles. (setCameraMatrix and setElementMatrix will result in camera flickering). | ||||
Tags | No tags attached. | ||||
|
I tried it and it returned false, then I tried it in dimension 0 and it also returned false. I then tried localPlayer instead of vehicle in attachElements and it works, is this actually a feature request to make camera attachable to a vehicle? |
|
v1.5.3-release-10966 It works in dimension 0 as described by AfterAll14 |
|
arranTuna, make sure you follow steps I described in "Steps to reproduce". You have to set dimensions server-side only, cause setting it client-side causes some bugs. I wasn't able to attach camera to localPlayer by doing it in correct order. |
|
Fixed in https://github.com/multitheftauto/mtasa-blue/commit/b04291b8c7a0caa937efbd9fda70843b91dcaab8 |
|
Nice, thanks! |