Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
But I’ve run into an issue: the lvs_wheeldrive_ammorack entity doesn’t seem to be pairable from the main vehicle. I tried using ent:GetChildren() and also searched by keyword - nothing found. However, in the code I noticed you're adding the ammorack via AddAmmoRack. Is there a way I can access the ammorack entity directly?
I'm just a layzy person :D
Here's how I tried to find it:
---
local function PairEntity(parent, className)
if not IsValid(parent) or not isstring(className) then return nil end
for _, child in ipairs(parent:GetChildren()) do
if IsValid(child) and child:GetClass() == className then
return child
end
end
return nil
end
---
And again, thanks for this abrams it's one of my favorite tank