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