Psychonauts Lua API Docs
index
/
User Wikis
/
Wiki Home
/
CreateObject
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.
wikOS
powered By
wiltOS Technologies
Psychonauts Lua API
Base Game Lua Classes
1
Root
GEN_dartstart
Engine API
5
AddSpriteHandle
SpawnScript
GamePrint
CreateObject
LSO
Guides
2
Classnames
Creating a new class
Login