Represents a model in the world. Can represent both an m2 and wmo model.
- get_filename
- get_pos
- get_rot
- get_scale
- get_uid
- has_filename
- remove
- replace
- set_pos
- set_rot
- set_scale
+ new model(): model
Returns: model
▸ get_filename(): string
Returns: string
▸ get_pos(): vector_3d
Returns: vector_3d
▸ get_rot(): vector_3d
Returns: vector_3d
▸ get_scale(): number
Returns: number
▸ get_uid(): number
Returns: number
▸ has_filename(name
: string): boolean
Name | Type |
---|---|
name |
string |
Returns: boolean
▸ remove(): void
Returns: void
▸ replace(filename
: string): any
Name | Type |
---|---|
filename |
string |
Returns: any
▸ set_pos(pos
: vector_3d): void
Name | Type |
---|---|
pos |
vector_3d |
Returns: void
▸ set_rot(pos
: vector_3d): void
Name | Type |
---|---|
pos |
vector_3d |
Returns: void
▸ set_scale(scale
: number): void
Name | Type |
---|---|
scale |
number |
Returns: void