Posts: 2,041
Threads: 97
Joined: Jun 2013
Why does this happen?
https://www.youtube.com/watch?v=IGlo_DP5gQM
In short, when an explosion is caused near objects that are weapon, they move, why?
EDIT: This happens when the objects are created with '
CreateObject' or '
CreateDynamicObject'.
Regards.
Posts: 1,099
Threads: 79
Joined: Nov 2011
Reputation:
0
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.
Posts: 4,930
Threads: 467
Joined: Dec 2010