Psychonauts Lua API Docs
Toggle Sidebar
wikOS
User wikis
Psychonauts Lua API Docs
CreateObject
Loading...
Loading...
CreateObject
LSO
CreateObject(
string
BaseClass ,
string
ClassName )
Description
Creates and returns an LSO for use in entity constructors. Not to be confused with
SpawnScript
Arguments
1
string
BaseClass
Specifies the class to inherit from. All classes should ultimately have ScriptBase at the top of their inheritance chain. Case-sensitive.
2
string
ClassName
This should match the name of the class exactly. This parameter is used to do internal setup for when another class wishes to inherit from this one.
Returns
1
LSO
object
Returns the created LSO, ready for use.
Login
Psychonauts Lua API
Base Game Lua Classes
1
Engine API
5
AddSpriteHandle
SpawnScript
GamePrint
CreateObject
LSO
Guides
2