View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0008306||Multi Theft Auto : San Andreas||Client||public||2014-06-25 22:12||2014-07-04 04:45|
|Target Version||Fixed in Version||1.4|
|Summary||0008306: [1.4] Created effects cannot be destroyed or attached.|
Some effects that infinitely loop, created using the createEffect function, cannot be destroyed using the destroyElement function.
Likewise, attachElements does not seem to work when trying to attach effects to elements.
|Steps To Reproduce|
|Tags||No tags attached.|
Some more thoughts:
On a long term scale I'd like to implement support for loading new effects (via an fxp file) as well as replacing SA effects (similar to engineReplaceModel). However this requires me to write a full .fxp format parser, since the SA parser does not handle invalid .fxp files nicely and crashes the game instead. Also I'll need to reverse some more structures for that first.
Currently I'd rather wait with feature additions until 1.4 is no longer trunk for stability reasons. However I'll definitely look into fixing your first bug as soon as I got time.
Thanks for the bug report and the feature suggestions! :)
Destroying effects is fixed in https://code.google.com/p/mtasa-blue/source/detail?r=6564.
Attaching needs to be solved by scripting. Unlike for CPhysicals (vehicles, objects, players etc.) SA only has a attachment function for ped bones for effects. This function could probably be used for vehicles/objects just fine, but that'd be rather unsafe. For other effects (e.g.: nitro) SA simply moves the effect pre-rendering to the new position.