The objects move when an explosion is caused.
#1

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.
Reply
#2

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.
Reply
#3

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.
Reply
#4

not is bug . ._.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)