G.NullEntity

From GMod Wiki

Jump to: navigation, search
Function
Syntax NullEntity( )
Where is this used?
Description:
Always returns NULL ENTITY
Returns: Entity NULL ENTITY
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.NullEntity]G.NullEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints a NULL entity and if it's valid or not (wich it will never be). Also prints an global alias of it.
Used onNewerShared.png
Code
print(NullEntity())
print(NullEntity():IsValid())
print(NullEntity() == NULL)
OutputNULL ENTITY

false

true


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox