Setting armour for actor - 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: Setting armour for actor (
/showthread.php?tid=637275)
Setting armour for actor -
Amit1998 - 11.07.2017
Is it possible to set the armour of an actor?
Re: Setting armour for actor -
Meller - 11.07.2017
native SetActorArmour(actorid, Float:armour);
native GetActorArmour(actorid, &Float:armour);
http://wiki.gta-online.lt/A_actors.inc
Re: Setting armour for actor -
IstuntmanI - 11.07.2017
Quote:
Originally Posted by Meller
|
Actors can't drive. Actors can't have weapons. Please try to use only the official wiki. That a_actors.inc file is probably from the unreleased SA-MP 0.2.5. Those actors are the predecessors of NPCs.
There is no SetActorArmour, but maybe you can use
SetActorHealth. Set actor's health to 200, that should do it, I think this is possible. You can
also make him invulnerable (by default).
All functions:
https://sampwiki.blast.hk/wiki/Category:Actor .