Garry's Mod Wiki

scripted_ents.IsBasedOn

boolean scripted_ents.IsBasedOn( string name, string base )

Description

Checks if name is based on base

Arguments

1 string name
Entity's class name to be checked
2 string base
Base class name to be checked

Returns

1 boolean
Returns true if class name is based on base, else false.

Example

See if gmod_hands is based on base_anim.

print(scripted_ents.IsBasedOn("gmod_hands", "base_anim"))
Output: true

Page Links


Special Pages


Wikis

?

Render Time: 34ms

Session 0
DB GetPage 3
Generate Html 7
SaveChanges 9
Render Body 0
Render Sidebar 12