Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
Setting armour for actor
Amit1998
Huge Clucker
Posts: 243
Threads: 73
Joined: Sep 2013
Reputation:
0
#1
11.07.2017, 21:26
Is it possible to set the armour of an actor?
Find
Reply
Meller
Banned
Posts: 578
Threads: 40
Joined: Dec 2016
#2
11.07.2017, 21:40
native SetActorArmour(actorid, Float:armour);
native GetActorArmour(actorid, &Float:armour);
http://wiki.gta-online.lt/A_actors.inc
Find
Reply
IstuntmanI
High-roller
Posts: 1,801
Threads: 27
Joined: Mar 2009
Reputation:
0
#3
11.07.2017, 22:10
Quote:
Originally Posted by
Meller
native SetActorArmour(actorid, Float:armour);
native GetActorArmour(actorid, &Float:armour);
http://wiki.gta-online.lt/A_actors.inc
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
.
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help