29.03.2014, 07:43
Why shouldn't it? It's an explosion, at explosions things will fly away, It's the games physics engine doing it, you may relatively do something like:
If an explosion happens near those objects, you may destroy them and re-create them, so they would not move, well they would, but they would appear as they did not move.
You may re-define your CreateExplosion function and add range checks, are your objects specifically close to the explosion coordinates? Then surely, destroy and re-create them!
But preventing those objects to fly away? No it is impossible, because this behaviour comes from default SA and as you can guess, SA-MP is a modification which uses the engine of GTA SA.
If an explosion happens near those objects, you may destroy them and re-create them, so they would not move, well they would, but they would appear as they did not move.
You may re-define your CreateExplosion function and add range checks, are your objects specifically close to the explosion coordinates? Then surely, destroy and re-create them!
But preventing those objects to fly away? No it is impossible, because this behaviour comes from default SA and as you can guess, SA-MP is a modification which uses the engine of GTA SA.