Entity.GetToyboxID

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:GetToyboxID( )
Description:
Returns the Toybox ID if the entity was spawned from the Toybox
Returns: Number
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetToyboxID]Entity.GetToyboxID [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionChecks to see if the entity was spawned from the Toybox.
Used onNewerShared.png
Code
function isFromToybox( entity )
	if ( entity:GetToyboxID() ) then
		return true
	else
		return false
	end
end
OutputReturns true if the entity was spawned from the Toybox, returns false otherwise.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox