The objects move when an explosion is caused. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP (
https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (
https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: The objects move when an explosion is caused. (
/showthread.php?tid=503334)
The objects move when an explosion is caused. -
Swedky - 29.03.2014
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.
Re: The objects move when an explosion is caused. -
Tamer - 29.03.2014
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.
Re: The objects move when an explosion is caused. -
Pottus - 29.03.2014
Quote:
Originally Posted by Tamer T
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.
|
It is possible to make them not explode all you need to do is attach them to an object that is not affected by explosions.
Respuesta: The objects move when an explosion is caused. -
OTACON - 29.03.2014
not is bug . ._.