CreateActor - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CreateActor (
/showthread.php?tid=635877)
CreateActor -
Cyboorg - 15.06.2017
I have created an actor
PHP Code:
public OnGameModeInit()
{
CreateActor(29, 1631.6747, 980.8739, 10.8203, 232.7813);
}
But -->Actors can be pushed by vehicles, use a timer to put them back at their positions.
How to use a timer to put them back at his position ?
Re: CreateActor -
Whatname - 15.06.2017
or you can create invisible object near actor
Re: CreateActor -
Cyboorg - 15.06.2017
How to use a timer to put him back at his position ?
Re: CreateActor -
JasonRiggs - 15.06.2017
As far as I know, It comes back alone if you left it and came back again.. as the actor.inc doesn't have a timer setting system
Re: CreateActor -
Cyboorg - 15.06.2017
Ups ,it didn't work till now !
Re: CreateActor -
JasonRiggs - 15.06.2017
It didn't come back to its place?
Alright then, Let's use another method..
Why don't you make a timer which Checks the Actor pos?? Via GetActorPos and if that Position not equal to The point which you've spawned the Actor, SetActorPos to the first place..