S&box Wiki

Sandbox.Entity.FindByName

Syntax

static Sandbox.Entity FindByName( string name, Sandbox.Entity fallback )

Description

Finds entities by EntityName and returns the first found result, if one was found. This does not handle cases where there are multiple entities with a given name.

Arguments

string name
Sandbox.Entity fallback

Returns