SA-MP Forums Archive
[Tutorial] Actors!(0.3.7 RC6) - 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)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Actors!(0.3.7 RC6) (/showthread.php?tid=572683)

Pages: 1 2


Re: Actors!(0.3.7 RC6) - Hiddos - 15.07.2015

If we can only set the virtual world of an actor, does this mean an actor is present in every interior?


Re: Actors!(0.3.7 RC6) - kurta999 - 15.07.2015

Quote:
Originally Posted by Hiddos
View Post
If we can only set the virtual world of an actor, does this mean an actor is present in every interior?
Yes.


Re: Actors!(0.3.7 RC6) - Haydz - 16.07.2015

Love this update, very good addition.

Can anybody think of any good uses for damaging / killing actor's? I want to implement something where killing the actor is involved but can't think of anything good since they'll just be static.


Re: Actors!(0.3.7 RC6) - Abagail - 20.07.2015

Perhaps if a player is robbing a store and they kill them they can get more items; and take thing's such as money, keys to restricted areas, whatever.


Re: Actors!(0.3.7 RC6) - Oficer - 12.01.2017

How set nick to actor?


Re: Actors!(0.3.7 RC6) - Lordzy - 13.01.2017

Quote:
Originally Posted by Oficer
View Post
How set nick to actor?
Unlike NPCs, they do not have any name by default. You can assign one using arrays. If you want their name to be displayed, you can use 3DTextLabels.


Re: Actors!(0.3.7 RC6) - Jay_Dixon - 24.06.2018

I've been looking to play around with actors actually. But there's some things I'm wonderring, like how does the script check if it's an actor? Like you know how we have "IsPlayerNPC", I need something that checks if it's an actor for what I have in mind with them.


Re: Actors!(0.3.7 RC6) - Dayrion - 25.06.2018

Quote:
Originally Posted by Jay_Dixon
View Post
I've been looking to play around with actors actually. But there's some things I'm wonderring, like how does the script check if it's an actor? Like you know how we have "IsPlayerNPC", I need something that checks if it's an actor for what I have in mind with them.
You can't interact with actors as you do with NPC. Actors have reserved functions and cannot be affected by others (unlike NPCs).


Re: Actors!(0.3.7 RC6) - Logic_ - 25.06.2018

Quote:
Originally Posted by Dayrion
View Post
You can't interact with actors as you do with NPC. Actors have reserved functions and cannot be affected by others (unlike NPCs).
(( Adding some information ))

and Actors work differently per client. This means that they may be at a different position for one player and at a different position for another player. Like you can push them etc.

NPCs act like a client.


Re: Actors!(0.3.7 RC6) - Jay_Dixon - 25.06.2018

Quote:
Originally Posted by Dayrion
View Post
You can't interact with actors as you do with NPC. Actors have reserved functions and cannot be affected by others (unlike NPCs).
I did get the actors "Interactive", in my own way. Basically walk up to them and press H, and the script does the rest of the work. They don't do what an NPC can do but at the same time I don't have the money to be able to get a server that can hold 250 NPC's. So replacing them with Actors is really my only option, even if I streamline them down to basics. But this person about how they spawn answerred one of the issues I seem to be having at the moment