SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   Problem with actors (https://forum.sa-mp.com/showthread.php?t=672102)

idcamn 27/01/2020 08:06 PM

Problem with actors
 
Hello! I am trying to create training zone. I want to give players the ability to train their shooting skills using actors, but it has some problems.

Just watch the video to understand what's happening. Actors receive hits even after I change their coordinates.

Not a big problem, but want to fix that.

https://www.youtube.com/watch?v=ufYsqEWmiwc

xRadical3 27/01/2020 09:03 PM

Re: Problem with actors
 
(This video is private)
What?;D

idcamn 27/01/2020 10:22 PM

Re: Problem with actors
 
Fixed video link

SiaReyes 28/01/2020 01:51 PM

Re: Problem with actors
 
Destroy and Create again?

Sasinosoft 28/01/2020 02:10 PM

Re: Problem with actors
 
If you want to delete an actor as soon as it gets shot, I think it's better if you destroy it, then create it again, as SiaReyes suggested. It's not an expensive operation.

idcamn 28/01/2020 04:00 PM

Re: Problem with actors
 
Yes, that helped, thanks!


All times are GMT. The time now is 11:09 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.