2022-04-23 01:41:42 +00:00
|
|
|
## [:rewind: Lua Functions](functions.md)
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2022-11-12 13:01:50 +00:00
|
|
|
[< prev](functions-3.md) | [1](functions.md) | [2](functions-2.md) | [3](functions-3.md) | 4 | [5](functions-5.md) | [next >](functions-5.md)]
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
|
2022-06-01 08:00:21 +00:00
|
|
|
---
|
2022-11-30 08:37:12 +00:00
|
|
|
# functions from obj_behaviors.c
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [absf_2](#absf_2)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = absf_2(f)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| f | `number` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 absf_2(f32 f);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [calc_new_obj_vel_and_pos_y](#calc_new_obj_vel_and_pos_y)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`calc_new_obj_vel_and_pos_y(objFloor, objFloorY, objVelX, objVelZ)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| objFloor | [Surface](structs.md#Surface) |
|
|
|
|
| objFloorY | `number` |
|
|
|
|
| objVelX | `number` |
|
|
|
|
| objVelZ | `number` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void calc_new_obj_vel_and_pos_y(struct Surface *objFloor, f32 objFloorY, f32 objVelX, f32 objVelZ);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [calc_new_obj_vel_and_pos_y_underwater](#calc_new_obj_vel_and_pos_y_underwater)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`calc_new_obj_vel_and_pos_y_underwater(objFloor, floorY, objVelX, objVelZ, waterY)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| objFloor | [Surface](structs.md#Surface) |
|
|
|
|
| floorY | `number` |
|
|
|
|
| objVelX | `number` |
|
|
|
|
| objVelZ | `number` |
|
|
|
|
| waterY | `number` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void calc_new_obj_vel_and_pos_y_underwater(struct Surface *objFloor, f32 floorY, f32 objVelX, f32 objVelZ, f32 waterY);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [calc_obj_friction](#calc_obj_friction)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`calc_obj_friction(objFriction, floor_nY)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| objFriction | `Pointer` <`number`> |
|
|
|
|
| floor_nY | `number` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void calc_obj_friction(f32 *objFriction, f32 floor_nY);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [current_mario_room_check](#current_mario_room_check)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = current_mario_room_check(room)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| room | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s8 current_mario_room_check(s16 room);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [is_nearest_mario_state_to_object](#is_nearest_mario_state_to_object)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = is_nearest_mario_state_to_object(m, obj)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u8 is_nearest_mario_state_to_object(struct MarioState *m, struct Object *obj);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [is_nearest_player_to_object](#is_nearest_player_to_object)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = is_nearest_player_to_object(m, obj)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | [Object](structs.md#Object) |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u8 is_nearest_player_to_object(struct Object *m, struct Object *obj);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [is_other_player_active](#is_other_player_active)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = is_other_player_active()`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u8 is_other_player_active(void);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [is_player_active](#is_player_active)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = is_player_active(m)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u8 is_player_active(struct MarioState* m);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [is_player_in_local_area](#is_player_in_local_area)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = is_player_in_local_area(m)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u8 is_player_in_local_area(struct MarioState* m);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [is_point_close_to_object](#is_point_close_to_object)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = is_point_close_to_object(obj, x, y, z, dist)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| x | `number` |
|
|
|
|
| y | `number` |
|
|
|
|
| z | `number` |
|
|
|
|
| dist | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s8 is_point_close_to_object(struct Object *obj, f32 x, f32 y, f32 z, s32 dist);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [is_point_within_radius_of_any_player](#is_point_within_radius_of_any_player)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = is_point_within_radius_of_any_player(x, y, z, dist)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| x | `number` |
|
|
|
|
| y | `number` |
|
|
|
|
| z | `number` |
|
|
|
|
| dist | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s8 is_point_within_radius_of_any_player(f32 x, f32 y, f32 z, s32 dist);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [is_point_within_radius_of_mario](#is_point_within_radius_of_mario)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = is_point_within_radius_of_mario(x, y, z, dist)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| x | `number` |
|
|
|
|
| y | `number` |
|
|
|
|
| z | `number` |
|
|
|
|
| dist | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s8 is_point_within_radius_of_mario(f32 x, f32 y, f32 z, s32 dist);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [nearest_interacting_mario_state_to_object](#nearest_interacting_mario_state_to_object)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local MarioStateValue = nearest_interacting_mario_state_to_object(obj)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[MarioState](structs.md#MarioState)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct MarioState *nearest_interacting_mario_state_to_object(struct Object *obj);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [nearest_interacting_player_to_object](#nearest_interacting_player_to_object)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local ObjectValue = nearest_interacting_player_to_object(obj)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[Object](structs.md#Object)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct Object *nearest_interacting_player_to_object(struct Object *obj);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [nearest_mario_state_to_object](#nearest_mario_state_to_object)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local MarioStateValue = nearest_mario_state_to_object(obj)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[MarioState](structs.md#MarioState)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct MarioState* nearest_mario_state_to_object(struct Object *obj);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [nearest_player_to_object](#nearest_player_to_object)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local ObjectValue = nearest_player_to_object(obj)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[Object](structs.md#Object)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct Object* nearest_player_to_object(struct Object *obj);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [nearest_possible_mario_state_to_object](#nearest_possible_mario_state_to_object)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local MarioStateValue = nearest_possible_mario_state_to_object(obj)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[MarioState](structs.md#MarioState)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct MarioState* nearest_possible_mario_state_to_object(struct Object *obj);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_check_floor_death](#obj_check_floor_death)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_check_floor_death(collisionFlags, floor)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| collisionFlags | `integer` |
|
|
|
|
| floor | [Surface](structs.md#Surface) |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_check_floor_death(s16 collisionFlags, struct Surface *floor);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_check_if_facing_toward_angle](#obj_check_if_facing_toward_angle)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_check_if_facing_toward_angle(base, goal, range)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| base | `integer` |
|
|
|
|
| goal | `integer` |
|
|
|
|
| range | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s8 obj_check_if_facing_toward_angle(u32 base, u32 goal, s16 range);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_find_wall](#obj_find_wall)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_find_wall(objNewX, objY, objNewZ, objVelX, objVelZ)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| objNewX | `number` |
|
|
|
|
| objY | `number` |
|
|
|
|
| objNewZ | `number` |
|
|
|
|
| objVelX | `number` |
|
|
|
|
| objVelZ | `number` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s8 obj_find_wall(f32 objNewX, f32 objY, f32 objNewZ, f32 objVelX, f32 objVelZ);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_find_wall_displacement](#obj_find_wall_displacement)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_find_wall_displacement(dist, x, y, z, radius)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| dist | [Vec3f](structs.md#Vec3f) |
|
|
|
|
| x | `number` |
|
|
|
|
| y | `number` |
|
|
|
|
| z | `number` |
|
|
|
|
| radius | `number` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s8 obj_find_wall_displacement(Vec3f dist, f32 x, f32 y, f32 z, f32 radius);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_flicker_and_disappear](#obj_flicker_and_disappear)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_flicker_and_disappear(obj, lifeSpan)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| lifeSpan | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s8 obj_flicker_and_disappear(struct Object *obj, s16 lifeSpan);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_lava_death](#obj_lava_death)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_lava_death()`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s8 obj_lava_death(void);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_move_xyz_using_fvel_and_yaw](#obj_move_xyz_using_fvel_and_yaw)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_move_xyz_using_fvel_and_yaw(obj)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_move_xyz_using_fvel_and_yaw(struct Object *obj);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_orient_graph](#obj_orient_graph)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_orient_graph(obj, normalX, normalY, normalZ)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| normalX | `number` |
|
|
|
|
| normalY | `number` |
|
|
|
|
| normalZ | `number` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_orient_graph(struct Object *obj, f32 normalX, f32 normalY, f32 normalZ);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_return_and_displace_home](#obj_return_and_displace_home)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_return_and_displace_home(obj, homeX, homeY, homeZ, baseDisp)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| homeX | `number` |
|
|
|
|
| homeY | `number` |
|
|
|
|
| homeZ | `number` |
|
|
|
|
| baseDisp | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_return_and_displace_home(struct Object *obj, f32 homeX, UNUSED f32 homeY, f32 homeZ, s32 baseDisp);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_return_home_if_safe](#obj_return_home_if_safe)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_return_home_if_safe(obj, homeX, y, homeZ, dist)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| homeX | `number` |
|
|
|
|
| y | `number` |
|
|
|
|
| homeZ | `number` |
|
|
|
|
| dist | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s8 obj_return_home_if_safe(struct Object *obj, f32 homeX, f32 y, f32 homeZ, s32 dist);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_spawn_yellow_coins](#obj_spawn_yellow_coins)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_spawn_yellow_coins(obj, nCoins)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| nCoins | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_spawn_yellow_coins(struct Object *obj, s8 nCoins);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_splash](#obj_splash)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_splash(waterY, objY)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| waterY | `integer` |
|
|
|
|
| objY | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_splash(s32 waterY, s32 objY);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_update_pos_vel_xz](#obj_update_pos_vel_xz)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_update_pos_vel_xz()`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_update_pos_vel_xz(void);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [object_step](#object_step)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = object_step()`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
|
|
|
`s16 object_step(void);`
|
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
## [object_step_without_floor_orient](#object_step_without_floor_orient)
|
|
|
|
|
|
|
|
### Lua Example
|
|
|
|
`local integerValue = object_step_without_floor_orient()`
|
|
|
|
|
|
|
|
### Parameters
|
2022-06-01 08:00:21 +00:00
|
|
|
- None
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
2022-06-01 08:00:21 +00:00
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 object_step_without_floor_orient(void);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [set_object_visibility](#set_object_visibility)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`set_object_visibility(obj, dist)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| dist | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void set_object_visibility(struct Object *obj, s32 dist);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [set_yoshi_as_not_dead](#set_yoshi_as_not_dead)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`set_yoshi_as_not_dead()`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void set_yoshi_as_not_dead(void);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [spawn_orange_number](#spawn_orange_number)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`spawn_orange_number(behParam, relX, relY, relZ)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| behParam | `integer` |
|
|
|
|
| relX | `integer` |
|
|
|
|
| relY | `integer` |
|
|
|
|
| relZ | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void spawn_orange_number(s8 behParam, s16 relX, s16 relY, s16 relZ);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [turn_obj_away_from_steep_floor](#turn_obj_away_from_steep_floor)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = turn_obj_away_from_steep_floor(objFloor, floorY, objVelX, objVelZ)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| objFloor | [Surface](structs.md#Surface) |
|
|
|
|
| floorY | `number` |
|
|
|
|
| objVelX | `number` |
|
|
|
|
| objVelZ | `number` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s8 turn_obj_away_from_steep_floor(struct Surface *objFloor, f32 floorY, f32 objVelX, f32 objVelZ);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [turn_obj_away_from_surface](#turn_obj_away_from_surface)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`turn_obj_away_from_surface(velX, velZ, nX, nY, nZ, objYawX, objYawZ)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| velX | `number` |
|
|
|
|
| velZ | `number` |
|
|
|
|
| nX | `number` |
|
|
|
|
| nY | `number` |
|
|
|
|
| nZ | `number` |
|
|
|
|
| objYawX | `Pointer` <`number`> |
|
|
|
|
| objYawZ | `Pointer` <`number`> |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void turn_obj_away_from_surface(f32 velX, f32 velZ, f32 nX, UNUSED f32 nY, f32 nZ, f32 *objYawX, f32 *objYawZ);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
---
|
|
|
|
# functions from obj_behaviors_2.c
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
|
|
|
|
## [approach_f32_ptr](#approach_f32_ptr)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = approach_f32_ptr(px, target, delta)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| px | `Pointer` <`number`> |
|
|
|
|
| target | `number` |
|
|
|
|
| delta | `number` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 approach_f32_ptr(f32 *px, f32 target, f32 delta);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_init_anim_and_check_if_end](#cur_obj_init_anim_and_check_if_end)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_init_anim_and_check_if_end(arg0)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| arg0 | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_init_anim_and_check_if_end(s32 arg0);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_init_anim_check_frame](#cur_obj_init_anim_check_frame)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_init_anim_check_frame(arg0, arg1)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| arg0 | `integer` |
|
|
|
|
| arg1 | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_init_anim_check_frame(s32 arg0, s32 arg1);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_init_anim_extend](#cur_obj_init_anim_extend)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_init_anim_extend(arg0)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| arg0 | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_init_anim_extend(s32 arg0);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_play_sound_at_anim_range](#cur_obj_play_sound_at_anim_range)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_play_sound_at_anim_range(arg0, arg1, sound)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| arg0 | `integer` |
|
|
|
|
| arg1 | `integer` |
|
|
|
|
| sound | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_play_sound_at_anim_range(s8 arg0, s8 arg1, u32 sound);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_anim_if_at_end](#cur_obj_set_anim_if_at_end)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_set_anim_if_at_end(arg0)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| arg0 | `integer` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_set_anim_if_at_end(s32 arg0);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_spin_all_dimensions](#cur_obj_spin_all_dimensions)
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_spin_all_dimensions(arg0, arg1)`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| arg0 | `number` |
|
|
|
|
| arg1 | `number` |
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_spin_all_dimensions(f32 arg0, f32 arg1);`
|
2022-06-01 08:00:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_act_knockback](#obj_act_knockback)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_act_knockback(baseScale)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| baseScale | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_act_knockback(UNUSED f32 baseScale);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_act_squished](#obj_act_squished)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_act_squished(baseScale)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| baseScale | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_act_squished(f32 baseScale);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_bounce_off_walls_edges_objects](#obj_bounce_off_walls_edges_objects)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_bounce_off_walls_edges_objects(targetYaw)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| targetYaw | `Pointer` <`integer`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_bounce_off_walls_edges_objects(s32 *targetYaw);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_check_attacks](#obj_check_attacks)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_check_attacks(hitbox, attackedMarioAction)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| hitbox | [ObjectHitbox](structs.md#ObjectHitbox) |
|
|
|
|
| attackedMarioAction | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_check_attacks(struct ObjectHitbox *hitbox, s32 attackedMarioAction);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_compute_vel_from_move_pitch](#obj_compute_vel_from_move_pitch)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_compute_vel_from_move_pitch(speed)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| speed | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_compute_vel_from_move_pitch(f32 speed);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_die_if_above_lava_and_health_non_positive](#obj_die_if_above_lava_and_health_non_positive)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_die_if_above_lava_and_health_non_positive()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_die_if_above_lava_and_health_non_positive(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_die_if_health_non_positive](#obj_die_if_health_non_positive)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_die_if_health_non_positive()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_die_if_health_non_positive(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_face_pitch_approach](#obj_face_pitch_approach)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_face_pitch_approach(targetPitch, deltaPitch)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| targetPitch | `integer` |
|
|
|
|
| deltaPitch | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_face_pitch_approach(s16 targetPitch, s16 deltaPitch);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_face_roll_approach](#obj_face_roll_approach)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_face_roll_approach(targetRoll, deltaRoll)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| targetRoll | `integer` |
|
|
|
|
| deltaRoll | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_face_roll_approach(s16 targetRoll, s16 deltaRoll);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_face_yaw_approach](#obj_face_yaw_approach)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_face_yaw_approach(targetYaw, deltaYaw)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| targetYaw | `integer` |
|
|
|
|
| deltaYaw | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_face_yaw_approach(s16 targetYaw, s16 deltaYaw);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_forward_vel_approach](#obj_forward_vel_approach)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_forward_vel_approach(target, delta)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| target | `number` |
|
|
|
|
| delta | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_forward_vel_approach(f32 target, f32 delta);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_get_pitch_from_vel](#obj_get_pitch_from_vel)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_get_pitch_from_vel()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 obj_get_pitch_from_vel(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_get_pitch_to_home](#obj_get_pitch_to_home)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_get_pitch_to_home(latDistToHome)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| latDistToHome | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 obj_get_pitch_to_home(f32 latDistToHome);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_grow_then_shrink](#obj_grow_then_shrink)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_grow_then_shrink(scaleVel, shootFireScale, endScale)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| scaleVel | `Pointer` <`number`> |
|
|
|
|
| shootFireScale | `number` |
|
|
|
|
| endScale | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_grow_then_shrink(f32 *scaleVel, f32 shootFireScale, f32 endScale);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_handle_attacks](#obj_handle_attacks)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_handle_attacks(hitbox, attackedMarioAction, attackHandlers)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| hitbox | [ObjectHitbox](structs.md#ObjectHitbox) |
|
|
|
|
| attackedMarioAction | `integer` |
|
|
|
|
| attackHandlers | `Pointer` <`integer`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_handle_attacks(struct ObjectHitbox *hitbox, s32 attackedMarioAction, u8 *attackHandlers);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_is_near_to_and_facing_mario](#obj_is_near_to_and_facing_mario)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_is_near_to_and_facing_mario(m, maxDist, maxAngleDiff)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
|
|
|
| maxDist | `number` |
|
|
|
|
| maxAngleDiff | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_is_near_to_and_facing_mario(struct MarioState* m, f32 maxDist, s16 maxAngleDiff);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_is_rendering_enabled](#obj_is_rendering_enabled)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_is_rendering_enabled()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_is_rendering_enabled(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_move_for_one_second](#obj_move_for_one_second)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_move_for_one_second(endAction)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| endAction | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_move_for_one_second(s32 endAction);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_move_pitch_approach](#obj_move_pitch_approach)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_move_pitch_approach(target, delta)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| target | `integer` |
|
|
|
|
| delta | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_move_pitch_approach(s16 target, s16 delta);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_random_fixed_turn](#obj_random_fixed_turn)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_random_fixed_turn(delta)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| delta | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 obj_random_fixed_turn(s16 delta);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_resolve_collisions_and_turn](#obj_resolve_collisions_and_turn)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_resolve_collisions_and_turn(targetYaw, turnSpeed)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| targetYaw | `integer` |
|
|
|
|
| turnSpeed | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_resolve_collisions_and_turn(s16 targetYaw, s16 turnSpeed);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_resolve_object_collisions](#obj_resolve_object_collisions)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_resolve_object_collisions(targetYaw)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| targetYaw | `Pointer` <`integer`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_resolve_object_collisions(s32 *targetYaw);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_roll_to_match_yaw_turn](#obj_roll_to_match_yaw_turn)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_roll_to_match_yaw_turn(targetYaw, maxRoll, rollSpeed)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| targetYaw | `integer` |
|
|
|
|
| maxRoll | `integer` |
|
|
|
|
| rollSpeed | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_roll_to_match_yaw_turn(s16 targetYaw, s16 maxRoll, s16 rollSpeed);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_rotate_yaw_and_bounce_off_walls](#obj_rotate_yaw_and_bounce_off_walls)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_rotate_yaw_and_bounce_off_walls(targetYaw, turnAmount)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| targetYaw | `integer` |
|
|
|
|
| turnAmount | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_rotate_yaw_and_bounce_off_walls(s16 targetYaw, s16 turnAmount);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_dist_from_home](#obj_set_dist_from_home)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_dist_from_home(distFromHome)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| distFromHome | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_dist_from_home(f32 distFromHome);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_knockback_action](#obj_set_knockback_action)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_knockback_action(attackType)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| attackType | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_knockback_action(s32 attackType);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_squished_action](#obj_set_squished_action)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_squished_action()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_squished_action(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_smooth_turn](#obj_smooth_turn)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_smooth_turn(angleVel, angle, targetAngle, targetSpeedProportion, accel, minSpeed, maxSpeed)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| angleVel | `Pointer` <`integer`> |
|
|
|
|
| angle | `Pointer` <`integer`> |
|
|
|
|
| targetAngle | `integer` |
|
|
|
|
| targetSpeedProportion | `number` |
|
|
|
|
| accel | `integer` |
|
|
|
|
| minSpeed | `integer` |
|
|
|
|
| maxSpeed | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_smooth_turn(s16 *angleVel, s32 *angle, s16 targetAngle, f32 targetSpeedProportion, s16 accel, s16 minSpeed, s16 maxSpeed);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_spit_fire](#obj_spit_fire)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local ObjectValue = obj_spit_fire(relativePosX, relativePosY, relativePosZ, scale, model, startSpeed, endSpeed, movePitch)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| relativePosX | `integer` |
|
|
|
|
| relativePosY | `integer` |
|
|
|
|
| relativePosZ | `integer` |
|
|
|
|
| scale | `number` |
|
|
|
|
| model | `integer` |
|
|
|
|
| startSpeed | `number` |
|
|
|
|
| endSpeed | `number` |
|
|
|
|
| movePitch | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[Object](structs.md#Object)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct Object* obj_spit_fire(s16 relativePosX, s16 relativePosY, s16 relativePosZ, f32 scale, s32 model, f32 startSpeed, f32 endSpeed, s16 movePitch);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_turn_pitch_toward_mario](#obj_turn_pitch_toward_mario)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_turn_pitch_toward_mario(m, targetOffsetY, turnAmount)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
|
|
|
| targetOffsetY | `number` |
|
|
|
|
| turnAmount | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 obj_turn_pitch_toward_mario(struct MarioState* m, f32 targetOffsetY, s16 turnAmount);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_unused_die](#obj_unused_die)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_unused_die()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_unused_die(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_update_blinking](#obj_update_blinking)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_update_blinking(blinkTimer, baseCycleLength, cycleLengthRange, blinkLength)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| blinkTimer | `Pointer` <`integer`> |
|
|
|
|
| baseCycleLength | `integer` |
|
|
|
|
| cycleLengthRange | `integer` |
|
|
|
|
| blinkLength | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_update_blinking(s32 *blinkTimer, s16 baseCycleLength, s16 cycleLengthRange, s16 blinkLength);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_update_standard_actions](#obj_update_standard_actions)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_update_standard_actions(scale)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| scale | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_update_standard_actions(f32 scale);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_y_vel_approach](#obj_y_vel_approach)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_y_vel_approach(target, delta)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| target | `number` |
|
|
|
|
| delta | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_y_vel_approach(f32 target, f32 delta);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [oscillate_toward](#oscillate_toward)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = oscillate_toward(value, vel, target, velCloseToZero, accel, slowdown)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| value | `Pointer` <`integer`> |
|
|
|
|
| vel | `Pointer` <`number`> |
|
|
|
|
| target | `integer` |
|
|
|
|
| velCloseToZero | `number` |
|
|
|
|
| accel | `number` |
|
|
|
|
| slowdown | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 oscillate_toward(s32 *value, f32 *vel, s32 target, f32 velCloseToZero, f32 accel, f32 slowdown);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [platform_on_track_update_pos_or_spawn_ball](#platform_on_track_update_pos_or_spawn_ball)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`platform_on_track_update_pos_or_spawn_ball(ballIndex, x, y, z)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| ballIndex | `integer` |
|
|
|
|
| x | `number` |
|
|
|
|
| y | `number` |
|
|
|
|
| z | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void platform_on_track_update_pos_or_spawn_ball(s32 ballIndex, f32 x, f32 y, f32 z);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [random_linear_offset](#random_linear_offset)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = random_linear_offset(base, range)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| base | `integer` |
|
|
|
|
| range | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 random_linear_offset(s16 base, s16 range);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [random_mod_offset](#random_mod_offset)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = random_mod_offset(base, step, mod)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| base | `integer` |
|
|
|
|
| step | `integer` |
|
|
|
|
| mod | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 random_mod_offset(s16 base, s16 step, s16 mod);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [treat_far_home_as_mario](#treat_far_home_as_mario)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`treat_far_home_as_mario(threshold, distanceToPlayer, angleToPlayer)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| threshold | `number` |
|
|
|
|
| distanceToPlayer | `Pointer` <`integer`> |
|
|
|
|
| angleToPlayer | `Pointer` <`integer`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void treat_far_home_as_mario(f32 threshold, s32* distanceToPlayer, s32* angleToPlayer);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
---
|
|
|
|
# functions from object_helpers.c
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
|
|
|
|
## [abs_angle_diff](#abs_angle_diff)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = abs_angle_diff(x0, x1)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| x0 | `integer` |
|
|
|
|
| x1 | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 abs_angle_diff(s16 x0, s16 x1);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [apply_drag_to_value](#apply_drag_to_value)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`apply_drag_to_value(value, dragStrength)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| value | `Pointer` <`number`> |
|
|
|
|
| dragStrength | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void apply_drag_to_value(f32 *value, f32 dragStrength);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [approach_f32_signed](#approach_f32_signed)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = approach_f32_signed(value, target, increment)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| value | `Pointer` <`number`> |
|
|
|
|
| target | `number` |
|
|
|
|
| increment | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 approach_f32_signed(f32 *value, f32 target, f32 increment);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [approach_f32_symmetric](#approach_f32_symmetric)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = approach_f32_symmetric(value, target, increment)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| value | `number` |
|
|
|
|
| target | `number` |
|
|
|
|
| increment | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 approach_f32_symmetric(f32 value, f32 target, f32 increment);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [approach_s16_symmetric](#approach_s16_symmetric)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = approach_s16_symmetric(value, target, increment)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| value | `integer` |
|
|
|
|
| target | `integer` |
|
|
|
|
| increment | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 approach_s16_symmetric(s16 value, s16 target, s16 increment);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [bhv_dust_smoke_loop](#bhv_dust_smoke_loop)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`bhv_dust_smoke_loop()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void bhv_dust_smoke_loop(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [bhv_init_room](#bhv_init_room)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`bhv_init_room()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void bhv_init_room(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [bit_shift_left](#bit_shift_left)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = bit_shift_left(a0)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| a0 | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 bit_shift_left(s32 a0);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [chain_segment_init](#chain_segment_init)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`chain_segment_init(segment)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| segment | [ChainSegment](structs.md#ChainSegment) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void chain_segment_init(struct ChainSegment *segment);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [clear_move_flag](#clear_move_flag)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = clear_move_flag(bitSet, flag)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| bitSet | `Pointer` <`integer`> |
|
|
|
|
| flag | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 clear_move_flag(u32 *bitSet, s32 flag);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [clear_time_stop_flags](#clear_time_stop_flags)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`clear_time_stop_flags(flags)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| flags | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void clear_time_stop_flags(s32 flags);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [count_objects_with_behavior](#count_objects_with_behavior)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = count_objects_with_behavior(behavior)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| behavior | `Pointer` <`BehaviorScript`> |
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 count_objects_with_behavior(const BehaviorScript *behavior);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [count_unimportant_objects](#count_unimportant_objects)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = count_unimportant_objects()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 count_unimportant_objects(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [create_transformation_from_matrices](#create_transformation_from_matrices)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`create_transformation_from_matrices(a0, a1, a2)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| a0 | `Mat4` |
|
|
|
|
| a1 | `Mat4` |
|
|
|
|
| a2 | `Mat4` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void create_transformation_from_matrices(Mat4 a0, Mat4 a1, Mat4 a2);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_abs_y_dist_to_home](#cur_obj_abs_y_dist_to_home)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = cur_obj_abs_y_dist_to_home()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 cur_obj_abs_y_dist_to_home(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_advance_looping_anim](#cur_obj_advance_looping_anim)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_advance_looping_anim()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_advance_looping_anim(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_align_gfx_with_floor](#cur_obj_align_gfx_with_floor)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_align_gfx_with_floor()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_align_gfx_with_floor(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_angle_to_home](#cur_obj_angle_to_home)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_angle_to_home()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 cur_obj_angle_to_home(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_apply_drag_xz](#cur_obj_apply_drag_xz)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_apply_drag_xz(dragStrength)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| dragStrength | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_apply_drag_xz(f32 dragStrength);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_become_intangible](#cur_obj_become_intangible)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_become_intangible()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_become_intangible(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_become_tangible](#cur_obj_become_tangible)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_become_tangible()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_become_tangible(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_can_mario_activate_textbox](#cur_obj_can_mario_activate_textbox)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_can_mario_activate_textbox(m, radius, height, unused)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
|
|
|
| radius | `number` |
|
|
|
|
| height | `number` |
|
|
|
|
| unused | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_can_mario_activate_textbox(struct MarioState* m, f32 radius, f32 height, UNUSED s32 unused);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_can_mario_activate_textbox_2](#cur_obj_can_mario_activate_textbox_2)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_can_mario_activate_textbox_2(m, radius, height)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
|
|
|
| radius | `number` |
|
|
|
|
| height | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_can_mario_activate_textbox_2(struct MarioState* m, f32 radius, f32 height);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_change_action](#cur_obj_change_action)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_change_action(action)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| action | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_change_action(s32 action);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_check_anim_frame](#cur_obj_check_anim_frame)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_check_anim_frame(frame)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| frame | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_check_anim_frame(s32 frame);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_check_anim_frame_in_range](#cur_obj_check_anim_frame_in_range)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_check_anim_frame_in_range(startFrame, rangeLength)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| startFrame | `integer` |
|
|
|
|
| rangeLength | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_check_anim_frame_in_range(s32 startFrame, s32 rangeLength);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_check_frame_prior_current_frame](#cur_obj_check_frame_prior_current_frame)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_check_frame_prior_current_frame(a0)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| a0 | `Pointer` <`integer`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_check_frame_prior_current_frame(s16 *a0);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_check_grabbed_mario](#cur_obj_check_grabbed_mario)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_check_grabbed_mario()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_check_grabbed_mario(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_check_if_at_animation_end](#cur_obj_check_if_at_animation_end)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_check_if_at_animation_end()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_check_if_at_animation_end(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_check_if_near_animation_end](#cur_obj_check_if_near_animation_end)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_check_if_near_animation_end()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_check_if_near_animation_end(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_check_interacted](#cur_obj_check_interacted)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_check_interacted()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_check_interacted(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_clear_interact_status_flag](#cur_obj_clear_interact_status_flag)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_clear_interact_status_flag(flag)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| flag | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_clear_interact_status_flag(s32 flag);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_compute_vel_xz](#cur_obj_compute_vel_xz)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_compute_vel_xz()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_compute_vel_xz(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_count_objects_with_behavior](#cur_obj_count_objects_with_behavior)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_count_objects_with_behavior(behavior, dist)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| behavior | `Pointer` <`BehaviorScript`> |
|
|
|
|
| dist | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u16 cur_obj_count_objects_with_behavior(const BehaviorScript* behavior, f32 dist);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_detect_steep_floor](#cur_obj_detect_steep_floor)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_detect_steep_floor(steepAngleDegrees)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| steepAngleDegrees | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_detect_steep_floor(s16 steepAngleDegrees);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_disable](#cur_obj_disable)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_disable()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_disable(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_disable_rendering](#cur_obj_disable_rendering)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_disable_rendering()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_disable_rendering(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_disable_rendering_and_become_intangible](#cur_obj_disable_rendering_and_become_intangible)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_disable_rendering_and_become_intangible(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_disable_rendering_and_become_intangible(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_dist_to_nearest_object_with_behavior](#cur_obj_dist_to_nearest_object_with_behavior)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = cur_obj_dist_to_nearest_object_with_behavior(behavior)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| behavior | `Pointer` <`BehaviorScript`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 cur_obj_dist_to_nearest_object_with_behavior(const BehaviorScript *behavior);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_enable_rendering](#cur_obj_enable_rendering)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_enable_rendering()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_enable_rendering(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_enable_rendering_2](#cur_obj_enable_rendering_2)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_enable_rendering_2()`
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
|
|
|
`void cur_obj_enable_rendering_2(void);`
|
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
## [cur_obj_enable_rendering_and_become_tangible](#cur_obj_enable_rendering_and_become_tangible)
|
|
|
|
|
|
|
|
### Lua Example
|
|
|
|
`cur_obj_enable_rendering_and_become_tangible(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_enable_rendering_and_become_tangible(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_enable_rendering_if_mario_in_room](#cur_obj_enable_rendering_if_mario_in_room)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_enable_rendering_if_mario_in_room()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_enable_rendering_if_mario_in_room(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_end_dialog](#cur_obj_end_dialog)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_end_dialog(m, dialogFlags, dialogResult)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
|
|
|
| dialogFlags | `integer` |
|
|
|
|
| dialogResult | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_end_dialog(struct MarioState* m, s32 dialogFlags, s32 dialogResult);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_extend_animation_if_at_end](#cur_obj_extend_animation_if_at_end)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_extend_animation_if_at_end()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_extend_animation_if_at_end(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_find_nearby_held_actor](#cur_obj_find_nearby_held_actor)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local ObjectValue = cur_obj_find_nearby_held_actor(behavior, maxDist)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| behavior | `Pointer` <`BehaviorScript`> |
|
|
|
|
| maxDist | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[Object](structs.md#Object)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct Object *cur_obj_find_nearby_held_actor(const BehaviorScript *behavior, f32 maxDist);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_find_nearest_object_with_behavior](#cur_obj_find_nearest_object_with_behavior)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local ObjectValue = cur_obj_find_nearest_object_with_behavior(behavior, dist)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| behavior | `Pointer` <`BehaviorScript`> |
|
|
|
|
| dist | `Pointer` <`number`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[Object](structs.md#Object)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct Object *cur_obj_find_nearest_object_with_behavior(const BehaviorScript *behavior, f32 *dist);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_find_nearest_pole](#cur_obj_find_nearest_pole)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local ObjectValue = cur_obj_find_nearest_pole()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[Object](structs.md#Object)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct Object* cur_obj_find_nearest_pole(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_follow_path](#cur_obj_follow_path)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_follow_path(unusedArg)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| unusedArg | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_follow_path(UNUSED s32 unusedArg);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_forward_vel_approach_upward](#cur_obj_forward_vel_approach_upward)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_forward_vel_approach_upward(target, increment)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| target | `number` |
|
|
|
|
| increment | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_forward_vel_approach_upward(f32 target, f32 increment);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_get_dropped](#cur_obj_get_dropped)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_get_dropped()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_get_dropped(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_get_thrown_or_placed](#cur_obj_get_thrown_or_placed)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_get_thrown_or_placed(forwardVel, velY, thrownAction)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| forwardVel | `number` |
|
|
|
|
| velY | `number` |
|
|
|
|
| thrownAction | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_get_thrown_or_placed(f32 forwardVel, f32 velY, s32 thrownAction);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_has_behavior](#cur_obj_has_behavior)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_has_behavior(behavior)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| behavior | `Pointer` <`BehaviorScript`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_has_behavior(const BehaviorScript *behavior);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_has_model](#cur_obj_has_model)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_has_model(modelID)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| modelID | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_has_model(u16 modelID);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_hide](#cur_obj_hide)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_hide()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_hide(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_hide_if_mario_far_away_y](#cur_obj_hide_if_mario_far_away_y)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_hide_if_mario_far_away_y(distY)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| distY | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_hide_if_mario_far_away_y(f32 distY);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_if_hit_wall_bounce_away](#cur_obj_if_hit_wall_bounce_away)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_if_hit_wall_bounce_away()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_if_hit_wall_bounce_away(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_init_animation](#cur_obj_init_animation)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_init_animation(animIndex)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| animIndex | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_init_animation(s32 animIndex);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_init_animation_and_anim_frame](#cur_obj_init_animation_and_anim_frame)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_init_animation_and_anim_frame(animIndex, animFrame)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| animIndex | `integer` |
|
|
|
|
| animFrame | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_init_animation_and_anim_frame(s32 animIndex, s32 animFrame);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_init_animation_and_check_if_near_end](#cur_obj_init_animation_and_check_if_near_end)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_init_animation_and_check_if_near_end(animIndex)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| animIndex | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_init_animation_and_check_if_near_end(s32 animIndex);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_init_animation_and_extend_if_at_end](#cur_obj_init_animation_and_extend_if_at_end)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_init_animation_and_extend_if_at_end(animIndex)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| animIndex | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_init_animation_and_extend_if_at_end(s32 animIndex);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_init_animation_with_accel_and_sound](#cur_obj_init_animation_with_accel_and_sound)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_init_animation_with_accel_and_sound(animIndex, accel)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| animIndex | `integer` |
|
|
|
|
| accel | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_init_animation_with_accel_and_sound(s32 animIndex, f32 accel);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_init_animation_with_sound](#cur_obj_init_animation_with_sound)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_init_animation_with_sound(animIndex)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| animIndex | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_init_animation_with_sound(s32 animIndex);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_is_any_player_on_platform](#cur_obj_is_any_player_on_platform)
|
2022-06-02 06:04:21 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_is_any_player_on_platform()`
|
2022-06-02 06:04:21 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-06-02 06:04:21 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_is_any_player_on_platform(void);`
|
2022-06-02 06:04:21 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_is_mario_ground_pounding_platform](#cur_obj_is_mario_ground_pounding_platform)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_is_mario_ground_pounding_platform()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_is_mario_ground_pounding_platform(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_is_mario_on_platform](#cur_obj_is_mario_on_platform)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_is_mario_on_platform()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_is_mario_on_platform(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_lateral_dist_from_mario_to_home](#cur_obj_lateral_dist_from_mario_to_home)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = cur_obj_lateral_dist_from_mario_to_home()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 cur_obj_lateral_dist_from_mario_to_home(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_lateral_dist_from_obj_to_home](#cur_obj_lateral_dist_from_obj_to_home)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = cur_obj_lateral_dist_from_obj_to_home(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 cur_obj_lateral_dist_from_obj_to_home(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_lateral_dist_to_home](#cur_obj_lateral_dist_to_home)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = cur_obj_lateral_dist_to_home()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 cur_obj_lateral_dist_to_home(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_mario_far_away](#cur_obj_mario_far_away)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_mario_far_away()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_mario_far_away(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_move_after_thrown_or_dropped](#cur_obj_move_after_thrown_or_dropped)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_move_after_thrown_or_dropped(forwardVel, velY)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| forwardVel | `number` |
|
|
|
|
| velY | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_move_after_thrown_or_dropped(f32 forwardVel, f32 velY);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_move_standard](#cur_obj_move_standard)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_move_standard(steepSlopeAngleDegrees)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| steepSlopeAngleDegrees | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_move_standard(s16 steepSlopeAngleDegrees);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_move_up_and_down](#cur_obj_move_up_and_down)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_move_up_and_down(a0)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| a0 | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_move_up_and_down(s32 a0);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_move_update_ground_air_flags](#cur_obj_move_update_ground_air_flags)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_move_update_ground_air_flags(gravity, bounciness)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| gravity | `number` |
|
|
|
|
| bounciness | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_move_update_ground_air_flags(UNUSED f32 gravity, f32 bounciness);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_move_update_underwater_flags](#cur_obj_move_update_underwater_flags)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_move_update_underwater_flags()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_move_update_underwater_flags(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_move_using_fvel_and_gravity](#cur_obj_move_using_fvel_and_gravity)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_move_using_fvel_and_gravity()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_move_using_fvel_and_gravity(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_move_using_vel](#cur_obj_move_using_vel)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_move_using_vel()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_move_using_vel(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_move_using_vel_and_gravity](#cur_obj_move_using_vel_and_gravity)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_move_using_vel_and_gravity()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_move_using_vel_and_gravity(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_move_xz](#cur_obj_move_xz)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_move_xz(steepSlopeNormalY, careAboutEdgesAndSteepSlopes)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| steepSlopeNormalY | `number` |
|
|
|
|
| careAboutEdgesAndSteepSlopes | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_move_xz(f32 steepSlopeNormalY, s32 careAboutEdgesAndSteepSlopes);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_move_xz_using_fvel_and_yaw](#cur_obj_move_xz_using_fvel_and_yaw)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_move_xz_using_fvel_and_yaw()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_move_xz_using_fvel_and_yaw(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_move_y](#cur_obj_move_y)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_move_y(gravity, bounciness, buoyancy)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| gravity | `number` |
|
|
|
|
| bounciness | `number` |
|
|
|
|
| buoyancy | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_move_y(f32 gravity, f32 bounciness, f32 buoyancy);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_move_y_and_get_water_level](#cur_obj_move_y_and_get_water_level)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = cur_obj_move_y_and_get_water_level(gravity, buoyancy)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| gravity | `number` |
|
|
|
|
| buoyancy | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 cur_obj_move_y_and_get_water_level(f32 gravity, f32 buoyancy);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_move_y_with_terminal_vel](#cur_obj_move_y_with_terminal_vel)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_move_y_with_terminal_vel()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_move_y_with_terminal_vel(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_nearest_object_with_behavior](#cur_obj_nearest_object_with_behavior)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local ObjectValue = cur_obj_nearest_object_with_behavior(behavior)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| behavior | `Pointer` <`BehaviorScript`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[Object](structs.md#Object)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct Object *cur_obj_nearest_object_with_behavior(const BehaviorScript *behavior);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_outside_home_rectangle](#cur_obj_outside_home_rectangle)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_outside_home_rectangle(minX, maxX, minZ, maxZ)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| minX | `number` |
|
|
|
|
| maxX | `number` |
|
|
|
|
| minZ | `number` |
|
|
|
|
| maxZ | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_outside_home_rectangle(f32 minX, f32 maxX, f32 minZ, f32 maxZ);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_outside_home_square](#cur_obj_outside_home_square)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_outside_home_square(halfLength)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| halfLength | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_outside_home_square(f32 halfLength);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_progress_direction_table](#cur_obj_progress_direction_table)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_progress_direction_table()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_progress_direction_table(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_push_mario_away](#cur_obj_push_mario_away)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_push_mario_away(radius)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| radius | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_push_mario_away(f32 radius);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_push_mario_away_from_cylinder](#cur_obj_push_mario_away_from_cylinder)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_push_mario_away_from_cylinder(radius, extentY)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| radius | `number` |
|
|
|
|
| extentY | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_push_mario_away_from_cylinder(f32 radius, f32 extentY);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_reflect_move_angle_off_wall](#cur_obj_reflect_move_angle_off_wall)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_reflect_move_angle_off_wall()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 cur_obj_reflect_move_angle_off_wall(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_reset_timer_and_subaction](#cur_obj_reset_timer_and_subaction)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_reset_timer_and_subaction()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_reset_timer_and_subaction(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_resolve_wall_collisions](#cur_obj_resolve_wall_collisions)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_resolve_wall_collisions()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_resolve_wall_collisions(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_reverse_animation](#cur_obj_reverse_animation)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_reverse_animation()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_reverse_animation(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_rotate_face_angle_using_vel](#cur_obj_rotate_face_angle_using_vel)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_rotate_face_angle_using_vel()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_rotate_face_angle_using_vel(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_rotate_move_angle_using_vel](#cur_obj_rotate_move_angle_using_vel)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_rotate_move_angle_using_vel()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_rotate_move_angle_using_vel(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_rotate_yaw_toward](#cur_obj_rotate_yaw_toward)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_rotate_yaw_toward(target, increment)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| target | `integer` |
|
|
|
|
| increment | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_rotate_yaw_toward(s16 target, s16 increment);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_scale](#cur_obj_scale)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_scale(scale)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| scale | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_scale(f32 scale);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_scale_over_time](#cur_obj_scale_over_time)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_scale_over_time(a0, a1, sp10, sp14)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| a0 | `integer` |
|
|
|
|
| a1 | `integer` |
|
|
|
|
| sp10 | `number` |
|
|
|
|
| sp14 | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_scale_over_time(s32 a0, s32 a1, f32 sp10, f32 sp14);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_behavior](#cur_obj_set_behavior)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_set_behavior(behavior)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| behavior | `Pointer` <`BehaviorScript`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_set_behavior(const BehaviorScript *behavior);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2023-02-08 15:51:07 +00:00
|
|
|
## [cur_obj_set_billboard_if_vanilla_cam](#cur_obj_set_billboard_if_vanilla_cam)
|
|
|
|
|
|
|
|
### Lua Example
|
|
|
|
`cur_obj_set_billboard_if_vanilla_cam()`
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
|
|
|
`void cur_obj_set_billboard_if_vanilla_cam(void);`
|
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_direction_table](#cur_obj_set_direction_table)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_set_direction_table(a0)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| a0 | `Pointer` <`integer`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_set_direction_table(s8 *a0);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_face_angle_to_move_angle](#cur_obj_set_face_angle_to_move_angle)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_set_face_angle_to_move_angle()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_set_face_angle_to_move_angle(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_hitbox_and_die_if_attacked](#cur_obj_set_hitbox_and_die_if_attacked)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_set_hitbox_and_die_if_attacked(hitbox, deathSound, noLootCoins)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| hitbox | [ObjectHitbox](structs.md#ObjectHitbox) |
|
|
|
|
| deathSound | `integer` |
|
|
|
|
| noLootCoins | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_set_hitbox_and_die_if_attacked(struct ObjectHitbox *hitbox, s32 deathSound, s32 noLootCoins);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_hitbox_radius_and_height](#cur_obj_set_hitbox_radius_and_height)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_set_hitbox_radius_and_height(radius, height)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| radius | `number` |
|
|
|
|
| height | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_set_hitbox_radius_and_height(f32 radius, f32 height);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_home_once](#cur_obj_set_home_once)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_set_home_once()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_set_home_once(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_hurtbox_radius_and_height](#cur_obj_set_hurtbox_radius_and_height)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_set_hurtbox_radius_and_height(radius, height)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| radius | `number` |
|
|
|
|
| height | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_set_hurtbox_radius_and_height(f32 radius, f32 height);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_pos_relative](#cur_obj_set_pos_relative)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_set_pos_relative(other, dleft, dy, dforward)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| other | [Object](structs.md#Object) |
|
|
|
|
| dleft | `number` |
|
|
|
|
| dy | `number` |
|
|
|
|
| dforward | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_set_pos_relative(struct Object *other, f32 dleft, f32 dy, f32 dforward);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_pos_relative_to_parent](#cur_obj_set_pos_relative_to_parent)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_set_pos_relative_to_parent(dleft, dy, dforward)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| dleft | `number` |
|
|
|
|
| dy | `number` |
|
|
|
|
| dforward | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_set_pos_relative_to_parent(f32 dleft, f32 dy, f32 dforward);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_pos_to_home](#cur_obj_set_pos_to_home)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_set_pos_to_home()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_set_pos_to_home(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_pos_to_home_and_stop](#cur_obj_set_pos_to_home_and_stop)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_set_pos_to_home_and_stop()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_set_pos_to_home_and_stop(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_pos_to_home_with_debug](#cur_obj_set_pos_to_home_with_debug)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_set_pos_to_home_with_debug()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_set_pos_to_home_with_debug(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_pos_via_transform](#cur_obj_set_pos_via_transform)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_set_pos_via_transform()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_set_pos_via_transform(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_vel_from_mario_vel](#cur_obj_set_vel_from_mario_vel)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_set_vel_from_mario_vel(m, f12, f14)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
|
|
|
| f12 | `number` |
|
|
|
|
| f14 | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_set_vel_from_mario_vel(struct MarioState* m, f32 f12, f32 f14);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_set_y_vel_and_animation](#cur_obj_set_y_vel_and_animation)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_set_y_vel_and_animation(sp18, sp1C)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| sp18 | `number` |
|
|
|
|
| sp1C | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_set_y_vel_and_animation(f32 sp18, s32 sp1C);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_shake_screen](#cur_obj_shake_screen)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_shake_screen(shake)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| shake | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_shake_screen(s32 shake);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_shake_y](#cur_obj_shake_y)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_shake_y(amount)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| amount | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_shake_y(f32 amount);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_shake_y_until](#cur_obj_shake_y_until)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_shake_y_until(cycles, amount)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| cycles | `integer` |
|
|
|
|
| amount | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_shake_y_until(s32 cycles, s32 amount);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_spawn_loot_blue_coin](#cur_obj_spawn_loot_blue_coin)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_spawn_loot_blue_coin()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_spawn_loot_blue_coin(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_spawn_loot_coin_at_mario_pos](#cur_obj_spawn_loot_coin_at_mario_pos)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_spawn_loot_coin_at_mario_pos(m)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_spawn_loot_coin_at_mario_pos(struct MarioState* m);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_spawn_particles](#cur_obj_spawn_particles)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_spawn_particles(info)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| info | [SpawnParticlesInfo](structs.md#SpawnParticlesInfo) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_spawn_particles(struct SpawnParticlesInfo *info);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_spawn_star_at_y_offset](#cur_obj_spawn_star_at_y_offset)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_spawn_star_at_y_offset(targetX, targetY, targetZ, offsetY)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| targetX | `number` |
|
|
|
|
| targetY | `number` |
|
|
|
|
| targetZ | `number` |
|
|
|
|
| offsetY | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_spawn_star_at_y_offset(f32 targetX, f32 targetY, f32 targetZ, f32 offsetY);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_start_cam_event](#cur_obj_start_cam_event)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_start_cam_event(obj, cameraEvent)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-11-30 08:37:12 +00:00
|
|
|
| cameraEvent | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_start_cam_event(UNUSED struct Object *obj, s32 cameraEvent);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_unhide](#cur_obj_unhide)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_unhide()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_unhide(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_unrender_and_reset_state](#cur_obj_unrender_and_reset_state)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_unrender_and_reset_state(sp18, sp1C)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| sp18 | `integer` |
|
|
|
|
| sp1C | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_unrender_and_reset_state(s32 sp18, s32 sp1C);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_unused_init_on_floor](#cur_obj_unused_init_on_floor)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_unused_init_on_floor()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_unused_init_on_floor(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_unused_play_footstep_sound](#cur_obj_unused_play_footstep_sound)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_unused_play_footstep_sound(animFrame1, animFrame2, sound)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| animFrame1 | `integer` |
|
|
|
|
| animFrame2 | `integer` |
|
|
|
|
| sound | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_unused_play_footstep_sound(s32 animFrame1, s32 animFrame2, s32 sound);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_unused_resolve_wall_collisions](#cur_obj_unused_resolve_wall_collisions)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_unused_resolve_wall_collisions(offsetY, radius)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| offsetY | `number` |
|
|
|
|
| radius | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_unused_resolve_wall_collisions(f32 offsetY, f32 radius);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_update_floor](#cur_obj_update_floor)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_update_floor()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_update_floor(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_update_floor_and_resolve_wall_collisions](#cur_obj_update_floor_and_resolve_wall_collisions)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_update_floor_and_resolve_wall_collisions(steepSlopeDegrees)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| steepSlopeDegrees | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_update_floor_and_resolve_wall_collisions(s16 steepSlopeDegrees);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_update_floor_and_walls](#cur_obj_update_floor_and_walls)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_update_floor_and_walls()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_update_floor_and_walls(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_update_floor_height](#cur_obj_update_floor_height)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`cur_obj_update_floor_height()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void cur_obj_update_floor_height(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_update_floor_height_and_get_floor](#cur_obj_update_floor_height_and_get_floor)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local SurfaceValue = cur_obj_update_floor_height_and_get_floor()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[Surface](structs.md#Surface)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct Surface *cur_obj_update_floor_height_and_get_floor(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_wait_then_blink](#cur_obj_wait_then_blink)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_wait_then_blink(timeUntilBlinking, numBlinks)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| timeUntilBlinking | `integer` |
|
|
|
|
| numBlinks | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_wait_then_blink(s32 timeUntilBlinking, s32 numBlinks);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_was_attacked_or_ground_pounded](#cur_obj_was_attacked_or_ground_pounded)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_was_attacked_or_ground_pounded()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_was_attacked_or_ground_pounded(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [cur_obj_within_12k_bounds](#cur_obj_within_12k_bounds)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = cur_obj_within_12k_bounds()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 cur_obj_within_12k_bounds(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [disable_time_stop](#disable_time_stop)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`disable_time_stop()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void disable_time_stop(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [disable_time_stop_including_mario](#disable_time_stop_including_mario)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`disable_time_stop_including_mario()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void disable_time_stop_including_mario(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [dist_between_object_and_point](#dist_between_object_and_point)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = dist_between_object_and_point(obj, pointX, pointY, pointZ)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-11-30 08:37:12 +00:00
|
|
|
| pointX | `number` |
|
|
|
|
| pointY | `number` |
|
|
|
|
| pointZ | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 dist_between_object_and_point(struct Object *obj, f32 pointX, f32 pointY, f32 pointZ);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [dist_between_objects](#dist_between_objects)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = dist_between_objects(obj1, obj2)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj1 | [Object](structs.md#Object) |
|
|
|
|
| obj2 | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 dist_between_objects(struct Object *obj1, struct Object *obj2);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [enable_time_stop](#enable_time_stop)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`enable_time_stop()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void enable_time_stop(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [enable_time_stop_if_alone](#enable_time_stop_if_alone)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`enable_time_stop_if_alone()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void enable_time_stop_if_alone(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [enable_time_stop_including_mario](#enable_time_stop_including_mario)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`enable_time_stop_including_mario()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void enable_time_stop_including_mario(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [find_object_with_behavior](#find_object_with_behavior)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local ObjectValue = find_object_with_behavior(behavior)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| behavior | `Pointer` <`BehaviorScript`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[Object](structs.md#Object)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct Object *find_object_with_behavior(const BehaviorScript *behavior);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [find_unimportant_object](#find_unimportant_object)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local ObjectValue = find_unimportant_object()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[Object](structs.md#Object)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct Object *find_unimportant_object(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [geo_offset_klepto_debug](#geo_offset_klepto_debug)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = geo_offset_klepto_debug(callContext, a1, sp8)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| callContext | `integer` |
|
|
|
|
| a1 | [GraphNode](structs.md#GraphNode) |
|
|
|
|
| sp8 | `integer` |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 geo_offset_klepto_debug(s32 callContext, struct GraphNode *a1, UNUSED s32 sp8);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [get_object_list_from_behavior](#get_object_list_from_behavior)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = get_object_list_from_behavior(behavior)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| behavior | `Pointer` <`BehaviorScript`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u32 get_object_list_from_behavior(const BehaviorScript *behavior);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [increment_velocity_toward_range](#increment_velocity_toward_range)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = increment_velocity_toward_range(value, center, zeroThreshold, increment)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| value | `number` |
|
|
|
|
| center | `number` |
|
|
|
|
| zeroThreshold | `number` |
|
|
|
|
| increment | `number` |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 increment_velocity_toward_range(f32 value, f32 center, f32 zeroThreshold, f32 increment);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [is_item_in_array](#is_item_in_array)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = is_item_in_array(item, array)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| item | `integer` |
|
|
|
|
| array | `Pointer` <`integer`> |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 is_item_in_array(s8 item, s8 *array);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [is_mario_moving_fast_or_in_air](#is_mario_moving_fast_or_in_air)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = is_mario_moving_fast_or_in_air(speedThreshold)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| speedThreshold | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 is_mario_moving_fast_or_in_air(s32 speedThreshold);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [lateral_dist_between_objects](#lateral_dist_between_objects)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = lateral_dist_between_objects(obj1, obj2)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj1 | [Object](structs.md#Object) |
|
|
|
|
| obj2 | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 lateral_dist_between_objects(struct Object *obj1, struct Object *obj2);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [linear_mtxf_mul_vec3f](#linear_mtxf_mul_vec3f)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`linear_mtxf_mul_vec3f(m, dst, v)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | `Mat4` |
|
|
|
|
| dst | [Vec3f](structs.md#Vec3f) |
|
|
|
|
| v | [Vec3f](structs.md#Vec3f) |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void linear_mtxf_mul_vec3f(Mat4 m, Vec3f dst, Vec3f v);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [linear_mtxf_transpose_mul_vec3f](#linear_mtxf_transpose_mul_vec3f)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`linear_mtxf_transpose_mul_vec3f(m, dst, v)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | `Mat4` |
|
|
|
|
| dst | [Vec3f](structs.md#Vec3f) |
|
|
|
|
| v | [Vec3f](structs.md#Vec3f) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void linear_mtxf_transpose_mul_vec3f(Mat4 m, Vec3f dst, Vec3f v);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [mario_is_dive_sliding](#mario_is_dive_sliding)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = mario_is_dive_sliding(m)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 mario_is_dive_sliding(struct MarioState* m);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [mario_is_in_air_action](#mario_is_in_air_action)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = mario_is_in_air_action(m)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 mario_is_in_air_action(struct MarioState* m);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [mario_is_within_rectangle](#mario_is_within_rectangle)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = mario_is_within_rectangle(minX, maxX, minZ, maxZ)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| minX | `integer` |
|
|
|
|
| maxX | `integer` |
|
|
|
|
| minZ | `integer` |
|
|
|
|
| maxZ | `integer` |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 mario_is_within_rectangle(s16 minX, s16 maxX, s16 minZ, s16 maxZ);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [mario_set_flag](#mario_set_flag)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`mario_set_flag(flag)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| flag | `integer` |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void mario_set_flag(s32 flag);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_angle_to_object](#obj_angle_to_object)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_angle_to_object(obj1, obj2)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj1 | [Object](structs.md#Object) |
|
|
|
|
| obj2 | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 obj_angle_to_object(struct Object *obj1, struct Object *obj2);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_angle_to_point](#obj_angle_to_point)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_angle_to_point(obj, pointX, pointZ)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-11-30 08:37:12 +00:00
|
|
|
| pointX | `number` |
|
|
|
|
| pointZ | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 obj_angle_to_point(struct Object *obj, f32 pointX, f32 pointZ);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_apply_scale_to_matrix](#obj_apply_scale_to_matrix)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_apply_scale_to_matrix(obj, dst, src)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-11-30 08:37:12 +00:00
|
|
|
| dst | `Mat4` |
|
|
|
|
| src | `Mat4` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_apply_scale_to_matrix(struct Object *obj, Mat4 dst, Mat4 src);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_apply_scale_to_transform](#obj_apply_scale_to_transform)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_apply_scale_to_transform(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_apply_scale_to_transform(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_attack_collided_from_other_object](#obj_attack_collided_from_other_object)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_attack_collided_from_other_object(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_attack_collided_from_other_object(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_become_tangible](#obj_become_tangible)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_become_tangible(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_become_tangible(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_build_relative_transform](#obj_build_relative_transform)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_build_relative_transform(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_build_relative_transform(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_build_transform_from_pos_and_angle](#obj_build_transform_from_pos_and_angle)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_build_transform_from_pos_and_angle(obj, posIndex, angleIndex)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| posIndex | `integer` |
|
2022-11-30 08:37:12 +00:00
|
|
|
| angleIndex | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_build_transform_from_pos_and_angle(struct Object *obj, s16 posIndex, s16 angleIndex);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_build_transform_relative_to_parent](#obj_build_transform_relative_to_parent)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_build_transform_relative_to_parent(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_build_transform_relative_to_parent(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_build_vel_from_transform](#obj_build_vel_from_transform)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_build_vel_from_transform(a0)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| a0 | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_build_vel_from_transform(struct Object *a0);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_check_if_collided_with_object](#obj_check_if_collided_with_object)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_check_if_collided_with_object(obj1, obj2)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj1 | [Object](structs.md#Object) |
|
|
|
|
| obj2 | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_check_if_collided_with_object(struct Object *obj1, struct Object *obj2);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_copy_angle](#obj_copy_angle)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_copy_angle(dst, src)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| dst | [Object](structs.md#Object) |
|
|
|
|
| src | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_copy_angle(struct Object *dst, struct Object *src);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_copy_behavior_params](#obj_copy_behavior_params)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_copy_behavior_params(dst, src)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| dst | [Object](structs.md#Object) |
|
|
|
|
| src | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_copy_behavior_params(struct Object *dst, struct Object *src);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_copy_graph_y_offset](#obj_copy_graph_y_offset)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_copy_graph_y_offset(dst, src)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| dst | [Object](structs.md#Object) |
|
|
|
|
| src | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_copy_graph_y_offset(struct Object *dst, struct Object *src);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_copy_pos](#obj_copy_pos)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_copy_pos(dst, src)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| dst | [Object](structs.md#Object) |
|
|
|
|
| src | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_copy_pos(struct Object *dst, struct Object *src);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_copy_pos_and_angle](#obj_copy_pos_and_angle)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_copy_pos_and_angle(dst, src)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| dst | [Object](structs.md#Object) |
|
|
|
|
| src | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_copy_pos_and_angle(struct Object *dst, struct Object *src);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_copy_scale](#obj_copy_scale)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_copy_scale(dst, src)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| dst | [Object](structs.md#Object) |
|
|
|
|
| src | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_copy_scale(struct Object *dst, struct Object *src);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_create_transform_from_self](#obj_create_transform_from_self)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_create_transform_from_self(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_create_transform_from_self(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_explode_and_spawn_coins](#obj_explode_and_spawn_coins)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_explode_and_spawn_coins(sp18, sp1C)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| sp18 | `number` |
|
|
|
|
| sp1C | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_explode_and_spawn_coins(f32 sp18, s32 sp1C);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_has_behavior](#obj_has_behavior)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_has_behavior(obj, behavior)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| behavior | `Pointer` <`BehaviorScript`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_has_behavior(struct Object *obj, const BehaviorScript *behavior);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_init_animation](#obj_init_animation)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_init_animation(obj, animIndex)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| animIndex | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_init_animation(struct Object *obj, s32 animIndex);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_is_hidden](#obj_is_hidden)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_is_hidden(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 obj_is_hidden(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_mark_for_deletion](#obj_mark_for_deletion)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_mark_for_deletion(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_mark_for_deletion(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_pitch_to_object](#obj_pitch_to_object)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_pitch_to_object(obj, target)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| target | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 obj_pitch_to_object(struct Object* obj, struct Object* target);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_scale](#obj_scale)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_scale(obj, scale)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-11-30 08:37:12 +00:00
|
|
|
| scale | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_scale(struct Object *obj, f32 scale);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_scale_random](#obj_scale_random)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_scale_random(obj, rangeLength, minScale)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| rangeLength | `number` |
|
|
|
|
| minScale | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_scale_random(struct Object *obj, f32 rangeLength, f32 minScale);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_scale_xyz](#obj_scale_xyz)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_scale_xyz(obj, xScale, yScale, zScale)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| xScale | `number` |
|
|
|
|
| yScale | `number` |
|
|
|
|
| zScale | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_scale_xyz(struct Object *obj, f32 xScale, f32 yScale, f32 zScale);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_angle](#obj_set_angle)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_angle(obj, pitch, yaw, roll)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| pitch | `integer` |
|
|
|
|
| yaw | `integer` |
|
|
|
|
| roll | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_angle(struct Object *obj, s16 pitch, s16 yaw, s16 roll);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_behavior](#obj_set_behavior)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_behavior(obj, behavior)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| behavior | `Pointer` <`BehaviorScript`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_behavior(struct Object *obj, const BehaviorScript *behavior);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_billboard](#obj_set_billboard)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_billboard(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_billboard(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_cylboard](#obj_set_cylboard)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_cylboard(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_cylboard(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_face_angle](#obj_set_face_angle)
|
2022-09-27 02:14:53 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_face_angle(obj, pitch, yaw, roll)`
|
2022-09-27 02:14:53 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| pitch | `integer` |
|
|
|
|
| yaw | `integer` |
|
|
|
|
| roll | `integer` |
|
2022-09-27 02:14:53 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_face_angle(struct Object *obj, s16 pitch, s16 yaw, s16 roll);`
|
2022-09-27 02:14:53 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_face_angle_to_move_angle](#obj_set_face_angle_to_move_angle)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_face_angle_to_move_angle(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_face_angle_to_move_angle(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_gfx_angle](#obj_set_gfx_angle)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_gfx_angle(obj, pitch, yaw, roll)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| pitch | `integer` |
|
|
|
|
| yaw | `integer` |
|
|
|
|
| roll | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_gfx_angle(struct Object *obj, s16 pitch, s16 yaw, s16 roll);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_gfx_pos](#obj_set_gfx_pos)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_gfx_pos(obj, x, y, z)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| x | `number` |
|
|
|
|
| y | `number` |
|
|
|
|
| z | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_gfx_pos(struct Object *obj, f32 x, f32 y, f32 z);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_gfx_pos_at_obj_pos](#obj_set_gfx_pos_at_obj_pos)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_gfx_pos_at_obj_pos(obj1, obj2)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj1 | [Object](structs.md#Object) |
|
|
|
|
| obj2 | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_gfx_pos_at_obj_pos(struct Object *obj1, struct Object *obj2);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_gfx_pos_from_pos](#obj_set_gfx_pos_from_pos)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_gfx_pos_from_pos(obj)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_gfx_pos_from_pos(struct Object *obj);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_gfx_scale](#obj_set_gfx_scale)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_gfx_scale(obj, x, y, z)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| x | `number` |
|
|
|
|
| y | `number` |
|
|
|
|
| z | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_gfx_scale(struct Object *obj, f32 x, f32 y, f32 z);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_held_state](#obj_set_held_state)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_held_state(obj, heldBehavior)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| heldBehavior | `Pointer` <`BehaviorScript`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_held_state(struct Object *obj, const BehaviorScript *heldBehavior);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_hitbox](#obj_set_hitbox)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_hitbox(obj, hitbox)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| hitbox | [ObjectHitbox](structs.md#ObjectHitbox) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_hitbox(struct Object *obj, struct ObjectHitbox *hitbox);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_hitbox_radius_and_height](#obj_set_hitbox_radius_and_height)
|
2022-08-08 03:52:51 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_hitbox_radius_and_height(o, radius, height)`
|
2022-08-08 03:52:51 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-09-27 02:14:53 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| o | [Object](structs.md#Object) |
|
|
|
|
| radius | `number` |
|
|
|
|
| height | `number` |
|
2022-08-08 03:52:51 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_hitbox_radius_and_height(struct Object *o, f32 radius, f32 height);`
|
2022-08-08 03:52:51 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_hurtbox_radius_and_height](#obj_set_hurtbox_radius_and_height)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_hurtbox_radius_and_height(o, radius, height)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| o | [Object](structs.md#Object) |
|
|
|
|
| radius | `number` |
|
|
|
|
| height | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_hurtbox_radius_and_height(struct Object *o, f32 radius, f32 height);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_move_angle](#obj_set_move_angle)
|
2022-08-08 03:53:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_move_angle(obj, pitch, yaw, roll)`
|
2022-08-08 03:53:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| pitch | `integer` |
|
|
|
|
| yaw | `integer` |
|
|
|
|
| roll | `integer` |
|
2022-08-08 03:53:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_move_angle(struct Object *obj, s16 pitch, s16 yaw, s16 roll);`
|
2022-08-08 03:53:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_parent_relative_pos](#obj_set_parent_relative_pos)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_parent_relative_pos(obj, relX, relY, relZ)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| relX | `integer` |
|
|
|
|
| relY | `integer` |
|
|
|
|
| relZ | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_parent_relative_pos(struct Object *obj, s16 relX, s16 relY, s16 relZ);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_pos](#obj_set_pos)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_pos(obj, x, y, z)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-05-08 11:04:14 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| x | `integer` |
|
|
|
|
| y | `integer` |
|
|
|
|
| z | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_pos(struct Object *obj, s16 x, s16 y, s16 z);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_pos_relative](#obj_set_pos_relative)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_pos_relative(obj, other, dleft, dy, dforward)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| other | [Object](structs.md#Object) |
|
|
|
|
| dleft | `number` |
|
|
|
|
| dy | `number` |
|
|
|
|
| dforward | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-05-08 11:04:14 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_pos_relative(struct Object *obj, struct Object *other, f32 dleft, f32 dy, f32 dforward);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_set_throw_matrix_from_transform](#obj_set_throw_matrix_from_transform)
|
2022-11-03 02:51:34 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_set_throw_matrix_from_transform(obj)`
|
2022-11-03 02:51:34 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
2022-11-03 02:51:34 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_set_throw_matrix_from_transform(struct Object *obj);`
|
2022-11-03 02:51:34 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_spawn_loot_blue_coins](#obj_spawn_loot_blue_coins)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_spawn_loot_blue_coins(obj, numCoins, sp28, posJitter)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-05-08 11:04:14 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| numCoins | `integer` |
|
|
|
|
| sp28 | `number` |
|
|
|
|
| posJitter | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-05-08 11:04:14 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_spawn_loot_blue_coins(struct Object *obj, s32 numCoins, f32 sp28, s16 posJitter);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_spawn_loot_coins](#obj_spawn_loot_coins)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_spawn_loot_coins(obj, numCoins, sp30, coinBehavior, posJitter, model)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| numCoins | `integer` |
|
|
|
|
| sp30 | `number` |
|
|
|
|
| coinBehavior | `Pointer` <`BehaviorScript`> |
|
|
|
|
| posJitter | `integer` |
|
|
|
|
| model | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_spawn_loot_coins(struct Object *obj, s32 numCoins, f32 sp30, const BehaviorScript *coinBehavior, s16 posJitter, s16 model);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_spawn_loot_yellow_coins](#obj_spawn_loot_yellow_coins)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_spawn_loot_yellow_coins(obj, numCoins, sp28)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| numCoins | `integer` |
|
|
|
|
| sp28 | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_spawn_loot_yellow_coins(struct Object *obj, s32 numCoins, f32 sp28);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_translate_local](#obj_translate_local)
|
2022-05-01 00:36:38 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_translate_local(obj, posIndex, localTranslateIndex)`
|
2022-05-01 00:36:38 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-05-08 11:04:14 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| posIndex | `integer` |
|
|
|
|
| localTranslateIndex | `integer` |
|
2022-05-01 00:36:38 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-05-01 00:36:38 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_translate_local(struct Object *obj, s16 posIndex, s16 localTranslateIndex);`
|
2022-05-01 00:36:38 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_translate_xyz_random](#obj_translate_xyz_random)
|
2022-05-01 00:36:38 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_translate_xyz_random(obj, rangeLength)`
|
2022-05-01 00:36:38 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-05-08 11:04:14 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| rangeLength | `number` |
|
2022-05-01 00:36:38 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-05-01 00:36:38 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_translate_xyz_random(struct Object *obj, f32 rangeLength);`
|
2022-05-01 00:36:38 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_translate_xz_random](#obj_translate_xz_random)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_translate_xz_random(obj, rangeLength)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| rangeLength | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_translate_xz_random(struct Object *obj, f32 rangeLength);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_turn_toward_object](#obj_turn_toward_object)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = obj_turn_toward_object(obj, target, angleIndex, turnAmount)`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| target | [Object](structs.md#Object) |
|
|
|
|
| angleIndex | `integer` |
|
|
|
|
| turnAmount | `integer` |
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 obj_turn_toward_object(struct Object *obj, struct Object *target, s16 angleIndex, s16 turnAmount);`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [obj_update_pos_from_parent_transformation](#obj_update_pos_from_parent_transformation)
|
2022-05-22 04:17:35 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`obj_update_pos_from_parent_transformation(a0, a1)`
|
2022-05-22 04:17:35 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| a0 | `Mat4` |
|
|
|
|
| a1 | [Object](structs.md#Object) |
|
2022-05-22 04:17:35 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-05-22 04:17:35 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void obj_update_pos_from_parent_transformation(Mat4 a0, struct Object *a1);`
|
2022-05-22 04:17:35 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [player_performed_grab_escape_action](#player_performed_grab_escape_action)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = player_performed_grab_escape_action()`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 player_performed_grab_escape_action(void);`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [random_f32_around_zero](#random_f32_around_zero)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = random_f32_around_zero(diameter)`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| diameter | `number` |
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 random_f32_around_zero(f32 diameter);`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [set_mario_interact_hoot_if_in_range](#set_mario_interact_hoot_if_in_range)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`set_mario_interact_hoot_if_in_range(sp0, sp4, sp8)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-05-08 11:04:14 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| sp0 | `integer` |
|
|
|
|
| sp4 | `integer` |
|
|
|
|
| sp8 | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-05-08 11:04:14 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void set_mario_interact_hoot_if_in_range(UNUSED s32 sp0, UNUSED s32 sp4, f32 sp8);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [set_time_stop_flags](#set_time_stop_flags)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`set_time_stop_flags(flags)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| flags | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-05-08 11:04:14 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void set_time_stop_flags(s32 flags);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [set_time_stop_flags_if_alone](#set_time_stop_flags_if_alone)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`set_time_stop_flags_if_alone(flags)`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| flags | `integer` |
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-05-08 11:04:14 +00:00
|
|
|
- None
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void set_time_stop_flags_if_alone(s32 flags);`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [signum_positive](#signum_positive)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = signum_positive(x)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| x | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 signum_positive(s32 x);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [spawn_base_star_with_no_lvl_exit](#spawn_base_star_with_no_lvl_exit)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`spawn_base_star_with_no_lvl_exit()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-05-08 11:04:14 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void spawn_base_star_with_no_lvl_exit(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [spawn_mist_particles](#spawn_mist_particles)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`spawn_mist_particles()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-05-08 11:04:14 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void spawn_mist_particles(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [spawn_mist_particles_with_sound](#spawn_mist_particles_with_sound)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`spawn_mist_particles_with_sound(sp18)`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| sp18 | `integer` |
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-05-08 11:04:14 +00:00
|
|
|
- None
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void spawn_mist_particles_with_sound(u32 sp18);`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [spawn_star_with_no_lvl_exit](#spawn_star_with_no_lvl_exit)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local ObjectValue = spawn_star_with_no_lvl_exit(sp20, sp24)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-05-08 11:04:14 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| sp20 | `integer` |
|
|
|
|
| sp24 | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[Object](structs.md#Object)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct Object *spawn_star_with_no_lvl_exit(s32 sp20, s32 sp24);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [spawn_water_droplet](#spawn_water_droplet)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local ObjectValue = spawn_water_droplet(parent, params)`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| parent | [Object](structs.md#Object) |
|
|
|
|
| params | [WaterDropletParams](structs.md#WaterDropletParams) |
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[Object](structs.md#Object)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct Object *spawn_water_droplet(struct Object *parent, struct WaterDropletParams *params);`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [stub_obj_helpers_3](#stub_obj_helpers_3)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`stub_obj_helpers_3(sp0, sp4)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| sp0 | `integer` |
|
|
|
|
| sp4 | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void stub_obj_helpers_3(UNUSED s32 sp0, UNUSED s32 sp4);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [stub_obj_helpers_4](#stub_obj_helpers_4)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`stub_obj_helpers_4()`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-05-08 11:04:14 +00:00
|
|
|
- None
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void stub_obj_helpers_4(void);`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
---
|
|
|
|
# functions from object_list_processor.h
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
|
|
## [set_object_respawn_info_bits](#set_object_respawn_info_bits)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`set_object_respawn_info_bits(obj, bits)`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| obj | [Object](structs.md#Object) |
|
|
|
|
| bits | `integer` |
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void set_object_respawn_info_bits(struct Object *obj, u8 bits);`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-06-06 04:55:31 +00:00
|
|
|
---
|
2022-11-30 08:37:12 +00:00
|
|
|
# functions from rumble_init.c
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [queue_rumble_data](#queue_rumble_data)
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`queue_rumble_data(a0, a1)`
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| a0 | `integer` |
|
|
|
|
| a1 | `integer` |
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void queue_rumble_data(s16 a0, s16 a1);`
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [queue_rumble_data_mario](#queue_rumble_data_mario)
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`queue_rumble_data_mario(m, a0, a1)`
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
|
|
|
| a0 | `integer` |
|
|
|
|
| a1 | `integer` |
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void queue_rumble_data_mario(struct MarioState* m, s16 a0, s16 a1);`
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [queue_rumble_data_object](#queue_rumble_data_object)
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`queue_rumble_data_object(object, a0, a1)`
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| object | [Object](structs.md#Object) |
|
|
|
|
| a0 | `integer` |
|
|
|
|
| a1 | `integer` |
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void queue_rumble_data_object(struct Object* object, s16 a0, s16 a1);`
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [reset_rumble_timers](#reset_rumble_timers)
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`reset_rumble_timers(m)`
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void reset_rumble_timers(struct MarioState* m);`
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [reset_rumble_timers_2](#reset_rumble_timers_2)
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`reset_rumble_timers_2(m, a0)`
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
|
|
|
| a0 | `integer` |
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void reset_rumble_timers_2(struct MarioState* m, s32 a0);`
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
---
|
|
|
|
# functions from save_file.h
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
|
|
## [save_file_clear_flags](#save_file_clear_flags)
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`save_file_clear_flags(flags)`
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| flags | `integer` |
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void save_file_clear_flags(u32 flags);`
|
2022-06-06 04:55:31 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [save_file_erase_current_backup_save](#save_file_erase_current_backup_save)
|
2022-08-26 00:27:05 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`save_file_erase_current_backup_save()`
|
2022-08-26 00:27:05 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-08-26 00:27:05 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void save_file_erase_current_backup_save(void);`
|
2022-08-26 00:27:05 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [save_file_get_cap_pos](#save_file_get_cap_pos)
|
2022-10-01 03:02:34 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = save_file_get_cap_pos(capPos)`
|
2022-10-01 03:02:34 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| capPos | [Vec3s](structs.md#Vec3s) |
|
2022-10-01 03:02:34 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-10-01 03:02:34 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 save_file_get_cap_pos(Vec3s capPos);`
|
2022-10-01 03:02:34 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [save_file_get_course_coin_score](#save_file_get_course_coin_score)
|
2022-08-26 00:46:33 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = save_file_get_course_coin_score(fileIndex, courseIndex)`
|
2022-08-26 00:46:33 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| fileIndex | `integer` |
|
|
|
|
| courseIndex | `integer` |
|
2022-08-26 00:46:33 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-12 13:01:50 +00:00
|
|
|
- `integer`
|
2022-08-26 00:46:33 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 save_file_get_course_coin_score(s32 fileIndex, s32 courseIndex);`
|
2022-08-26 00:46:33 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [save_file_get_course_star_count](#save_file_get_course_star_count)
|
2022-05-01 00:33:38 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = save_file_get_course_star_count(fileIndex, courseIndex)`
|
2022-05-01 00:33:38 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| fileIndex | `integer` |
|
|
|
|
| courseIndex | `integer` |
|
2022-05-01 00:33:38 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-05-01 00:33:38 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 save_file_get_course_star_count(s32 fileIndex, s32 courseIndex);`
|
2022-05-01 00:33:38 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [save_file_get_flags](#save_file_get_flags)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = save_file_get_flags()`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-12 13:01:50 +00:00
|
|
|
- `integer`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u32 save_file_get_flags(void);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [save_file_get_max_coin_score](#save_file_get_max_coin_score)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = save_file_get_max_coin_score(courseIndex)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| courseIndex | `integer` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u32 save_file_get_max_coin_score(s32 courseIndex);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [save_file_get_sound_mode](#save_file_get_sound_mode)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = save_file_get_sound_mode()`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-12 13:01:50 +00:00
|
|
|
- `integer`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u16 save_file_get_sound_mode(void);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [save_file_get_star_flags](#save_file_get_star_flags)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = save_file_get_star_flags(fileIndex, courseIndex)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-12 13:01:50 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| fileIndex | `integer` |
|
|
|
|
| courseIndex | `integer` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u32 save_file_get_star_flags(s32 fileIndex, s32 courseIndex);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [save_file_get_total_star_count](#save_file_get_total_star_count)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = save_file_get_total_star_count(fileIndex, minCourse, maxCourse)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-12 13:01:50 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| fileIndex | `integer` |
|
|
|
|
| minCourse | `integer` |
|
|
|
|
| maxCourse | `integer` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 save_file_get_total_star_count(s32 fileIndex, s32 minCourse, s32 maxCourse);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [save_file_reload](#save_file_reload)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`save_file_reload(load_all)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-12 13:01:50 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| load_all | `integer` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void save_file_reload(u8 load_all);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [save_file_set_flags](#save_file_set_flags)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`save_file_set_flags(flags)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-12 13:01:50 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| flags | `integer` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-12 13:01:50 +00:00
|
|
|
- None
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void save_file_set_flags(u32 flags);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [save_file_set_star_flags](#save_file_set_star_flags)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`save_file_set_star_flags(fileIndex, courseIndex, starFlags)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-12 13:01:50 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| fileIndex | `integer` |
|
|
|
|
| courseIndex | `integer` |
|
|
|
|
| starFlags | `integer` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void save_file_set_star_flags(s32 fileIndex, s32 courseIndex, u32 starFlags);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
---
|
|
|
|
# functions from smlua_audio_utils.h
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
|
|
## [audio_sample_destroy](#audio_sample_destroy)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`audio_sample_destroy(audio)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void audio_sample_destroy(struct BassAudio* audio);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_sample_load](#audio_sample_load)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local BassAudioValue = audio_sample_load(filename)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| filename | `string` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[BassAudio](structs.md#BassAudio)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct BassAudio* audio_sample_load(const char* filename);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_sample_play](#audio_sample_play)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`audio_sample_play(audio, position, volume)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-12 13:01:50 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
|
|
|
| position | [Vec3f](structs.md#Vec3f) |
|
|
|
|
| volume | `number` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-12 13:01:50 +00:00
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void audio_sample_play(struct BassAudio* audio, Vec3f position, f32 volume);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_sample_stop](#audio_sample_stop)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`audio_sample_stop(audio)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void audio_sample_stop(struct BassAudio* audio);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_destroy](#audio_stream_destroy)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`audio_stream_destroy(audio)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void audio_stream_destroy(struct BassAudio* audio);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_get_frequency](#audio_stream_get_frequency)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = audio_stream_get_frequency(audio)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 audio_stream_get_frequency(struct BassAudio* audio);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_get_looping](#audio_stream_get_looping)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local booleanValue = audio_stream_get_looping(audio)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `boolean`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`bool audio_stream_get_looping(struct BassAudio* audio);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_get_position](#audio_stream_get_position)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = audio_stream_get_position(audio)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 audio_stream_get_position(struct BassAudio* audio);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_get_tempo](#audio_stream_get_tempo)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = audio_stream_get_tempo(audio)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 audio_stream_get_tempo(struct BassAudio* audio);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_get_volume](#audio_stream_get_volume)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = audio_stream_get_volume(audio)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 audio_stream_get_volume(struct BassAudio* audio);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_load](#audio_stream_load)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local BassAudioValue = audio_stream_load(filename)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| filename | `string` |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[BassAudio](structs.md#BassAudio)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct BassAudio* audio_stream_load(const char* filename);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_load_url](#audio_stream_load_url)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local BassAudioValue = audio_stream_load_url(url)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| url | `string` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[BassAudio](structs.md#BassAudio)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct BassAudio* audio_stream_load_url(const char* url);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_pause](#audio_stream_pause)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`audio_stream_pause(audio)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void audio_stream_pause(struct BassAudio* audio);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_play](#audio_stream_play)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`audio_stream_play(audio, restart, volume)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
|
|
|
| restart | `boolean` |
|
|
|
|
| volume | `number` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void audio_stream_play(struct BassAudio* audio, bool restart, f32 volume);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_set_frequency](#audio_stream_set_frequency)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`audio_stream_set_frequency(audio, freq)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
|
|
|
| freq | `number` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void audio_stream_set_frequency(struct BassAudio* audio, f32 freq);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_set_looping](#audio_stream_set_looping)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`audio_stream_set_looping(audio, looping)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
|
|
|
| looping | `boolean` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void audio_stream_set_looping(struct BassAudio* audio, bool looping);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_set_position](#audio_stream_set_position)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`audio_stream_set_position(audio, pos)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
|
|
|
| pos | `number` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void audio_stream_set_position(struct BassAudio* audio, f32 pos);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_set_speed](#audio_stream_set_speed)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`audio_stream_set_speed(audio, initial_freq, speed, pitch)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
|
|
|
| initial_freq | `number` |
|
|
|
|
| speed | `number` |
|
|
|
|
| pitch | `boolean` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void audio_stream_set_speed(struct BassAudio* audio, f32 initial_freq, f32 speed, bool pitch);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_set_tempo](#audio_stream_set_tempo)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`audio_stream_set_tempo(audio, tempo)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
|
|
|
| tempo | `number` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void audio_stream_set_tempo(struct BassAudio* audio, f32 tempo);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_set_volume](#audio_stream_set_volume)
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`audio_stream_set_volume(audio, volume)`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
|
|
|
| volume | `number` |
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void audio_stream_set_volume(struct BassAudio* audio, f32 volume);`
|
2022-05-23 01:47:36 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [audio_stream_stop](#audio_stream_stop)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`audio_stream_stop(audio)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| audio | [BassAudio](structs.md#BassAudio) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void audio_stream_stop(struct BassAudio* audio);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [smlua_audio_utils_replace_sequence](#smlua_audio_utils_replace_sequence)
|
2022-05-01 00:33:38 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`smlua_audio_utils_replace_sequence(sequenceId, bankId, defaultVolume, m64Name)`
|
2022-05-01 00:33:38 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| sequenceId | `integer` |
|
|
|
|
| bankId | `integer` |
|
|
|
|
| defaultVolume | `integer` |
|
|
|
|
| m64Name | `string` |
|
2022-05-01 00:33:38 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void smlua_audio_utils_replace_sequence(u8 sequenceId, u8 bankId, u8 defaultVolume, const char* m64Name);`
|
2022-05-01 00:33:38 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [smlua_audio_utils_reset_all](#smlua_audio_utils_reset_all)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`smlua_audio_utils_reset_all()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-10-18 22:34:46 +00:00
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void smlua_audio_utils_reset_all(void);`
|
2022-10-18 22:34:46 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
---
|
|
|
|
# functions from smlua_collision_utils.h
|
2022-08-26 00:25:54 +00:00
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-05-08 07:29:17 +00:00
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [collision_find_surface_on_ray](#collision_find_surface_on_ray)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local RayIntersectionInfoValue = collision_find_surface_on_ray(startX, startY, startZ, endX, endY, endZ)`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| startX | `number` |
|
|
|
|
| startY | `number` |
|
|
|
|
| startZ | `number` |
|
|
|
|
| endX | `number` |
|
|
|
|
| endY | `number` |
|
|
|
|
| endZ | `number` |
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[RayIntersectionInfo](structs.md#RayIntersectionInfo)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct RayIntersectionInfo* collision_find_surface_on_ray(f32 startX, f32 startY, f32 startZ, f32 endX, f32 endY, f32 endZ);`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [get_water_surface_pseudo_floor](#get_water_surface_pseudo_floor)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local SurfaceValue = get_water_surface_pseudo_floor()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[Surface](structs.md#Surface)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct Surface* get_water_surface_pseudo_floor(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [smlua_collision_util_get](#smlua_collision_util_get)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local PointerValue = smlua_collision_util_get(name)`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| name | `string` |
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `Pointer` <`Collision`>
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`Collision* smlua_collision_util_get(const char* name);`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
---
|
|
|
|
# functions from smlua_level_utils.h
|
2022-09-13 03:00:51 +00:00
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-05-08 07:29:17 +00:00
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [level_register](#level_register)
|
Changes in level_info; play_transition; dev-only warp command; bug fix for moving sounds played via lua (#69)
Improved level_info.c and added functions to LUA:
const char *get_level_name_ascii(s16 courseNum, s16 levelNum, s16 areaIndex, s16 charCase):
Return a level name as an ascii string. If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const u8 *get_level_name_sm64(s16 courseNum, s16 levelNum, s16 areaIndex, s16 charCase):
Return a level name as an sm64 u8 string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const char *get_level_name(s16 courseNum, s16 levelNum, s16 areaIndex):
Shortcut for get_level_name_ascii(courseNum, levelNum, areaIndex, -1).
const char *get_star_name_ascii(s16 courseNum, s16 starNum, s16 charCase):
Return a star name as an ascii string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const u8 *get_star_name_sm64(s16 courseNum, s16 starNum, s16 charCase):
Return a star name as an sm64 u8 string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const char *get_star_name(s16 courseNum, s16 starNum):
Shortcut for get_star_name_ascii(courseNum, starNum, -1).
Added play_transition function to LUA.
I chose to copy the function declaration to smlua_misc_utils.h instead of adding area.h
to the autogen tool, as most structures, variables and functions in area.h aren't meant
to be used by LUA scripts.
Added a dev-only warp chat command.
This command signature is /warp [LEVEL] [AREA] [ACT]. Level can be either a number
or a shorthand name (bob, wf, ccm...). Area and Act are numbers.
This command is available only when building the game with DEBUG and DEVELOPMENT.
This command cannot be used if hosting through Discord.
Fixed a bug with moving sounds when they are played via a lua script.
Bug: Moving sounds (including terrain sounds, flying sound, quicksand sound)
are not played correctly when a lua script play them via a call of
play_sound or play_sound_with_freq_scale. This is due to how the moving
sounds are handled internally. They use the f32 pointer provided to the
play_sound functions to decide if the sound must be kept playing,
stopped or restarted. Most of the time, the pointer provided is the
cameraToObject field of Mario's object graph node. Since smlua uses a
circular buffer for Vec3f conversion, this pointer is lost, and the
sound engine can't decide what to do with the sound, resulting in a
weird and incorrect sound effect.
Fix: play_sound and play_sound_with_freq_scale now calls
smlua_get_vec3f_for_play_sound before filling the sound request queue,
to retrieve the correct pointer from the Vec3f provided by smlua.
2022-04-26 20:48:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = level_register(scriptEntryName, courseNum, fullName, shortName, acousticReach, echoLevel1, echoLevel2, echoLevel3)`
|
Changes in level_info; play_transition; dev-only warp command; bug fix for moving sounds played via lua (#69)
Improved level_info.c and added functions to LUA:
const char *get_level_name_ascii(s16 courseNum, s16 levelNum, s16 areaIndex, s16 charCase):
Return a level name as an ascii string. If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const u8 *get_level_name_sm64(s16 courseNum, s16 levelNum, s16 areaIndex, s16 charCase):
Return a level name as an sm64 u8 string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const char *get_level_name(s16 courseNum, s16 levelNum, s16 areaIndex):
Shortcut for get_level_name_ascii(courseNum, levelNum, areaIndex, -1).
const char *get_star_name_ascii(s16 courseNum, s16 starNum, s16 charCase):
Return a star name as an ascii string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const u8 *get_star_name_sm64(s16 courseNum, s16 starNum, s16 charCase):
Return a star name as an sm64 u8 string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const char *get_star_name(s16 courseNum, s16 starNum):
Shortcut for get_star_name_ascii(courseNum, starNum, -1).
Added play_transition function to LUA.
I chose to copy the function declaration to smlua_misc_utils.h instead of adding area.h
to the autogen tool, as most structures, variables and functions in area.h aren't meant
to be used by LUA scripts.
Added a dev-only warp chat command.
This command signature is /warp [LEVEL] [AREA] [ACT]. Level can be either a number
or a shorthand name (bob, wf, ccm...). Area and Act are numbers.
This command is available only when building the game with DEBUG and DEVELOPMENT.
This command cannot be used if hosting through Discord.
Fixed a bug with moving sounds when they are played via a lua script.
Bug: Moving sounds (including terrain sounds, flying sound, quicksand sound)
are not played correctly when a lua script play them via a call of
play_sound or play_sound_with_freq_scale. This is due to how the moving
sounds are handled internally. They use the f32 pointer provided to the
play_sound functions to decide if the sound must be kept playing,
stopped or restarted. Most of the time, the pointer provided is the
cameraToObject field of Mario's object graph node. Since smlua uses a
circular buffer for Vec3f conversion, this pointer is lost, and the
sound engine can't decide what to do with the sound, resulting in a
weird and incorrect sound effect.
Fix: play_sound and play_sound_with_freq_scale now calls
smlua_get_vec3f_for_play_sound before filling the sound request queue,
to retrieve the correct pointer from the Vec3f provided by smlua.
2022-04-26 20:48:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| scriptEntryName | `string` |
|
|
|
|
| courseNum | `integer` |
|
|
|
|
| fullName | `string` |
|
|
|
|
| shortName | `string` |
|
|
|
|
| acousticReach | `integer` |
|
|
|
|
| echoLevel1 | `integer` |
|
|
|
|
| echoLevel2 | `integer` |
|
|
|
|
| echoLevel3 | `integer` |
|
Changes in level_info; play_transition; dev-only warp command; bug fix for moving sounds played via lua (#69)
Improved level_info.c and added functions to LUA:
const char *get_level_name_ascii(s16 courseNum, s16 levelNum, s16 areaIndex, s16 charCase):
Return a level name as an ascii string. If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const u8 *get_level_name_sm64(s16 courseNum, s16 levelNum, s16 areaIndex, s16 charCase):
Return a level name as an sm64 u8 string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const char *get_level_name(s16 courseNum, s16 levelNum, s16 areaIndex):
Shortcut for get_level_name_ascii(courseNum, levelNum, areaIndex, -1).
const char *get_star_name_ascii(s16 courseNum, s16 starNum, s16 charCase):
Return a star name as an ascii string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const u8 *get_star_name_sm64(s16 courseNum, s16 starNum, s16 charCase):
Return a star name as an sm64 u8 string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const char *get_star_name(s16 courseNum, s16 starNum):
Shortcut for get_star_name_ascii(courseNum, starNum, -1).
Added play_transition function to LUA.
I chose to copy the function declaration to smlua_misc_utils.h instead of adding area.h
to the autogen tool, as most structures, variables and functions in area.h aren't meant
to be used by LUA scripts.
Added a dev-only warp chat command.
This command signature is /warp [LEVEL] [AREA] [ACT]. Level can be either a number
or a shorthand name (bob, wf, ccm...). Area and Act are numbers.
This command is available only when building the game with DEBUG and DEVELOPMENT.
This command cannot be used if hosting through Discord.
Fixed a bug with moving sounds when they are played via a lua script.
Bug: Moving sounds (including terrain sounds, flying sound, quicksand sound)
are not played correctly when a lua script play them via a call of
play_sound or play_sound_with_freq_scale. This is due to how the moving
sounds are handled internally. They use the f32 pointer provided to the
play_sound functions to decide if the sound must be kept playing,
stopped or restarted. Most of the time, the pointer provided is the
cameraToObject field of Mario's object graph node. Since smlua uses a
circular buffer for Vec3f conversion, this pointer is lost, and the
sound engine can't decide what to do with the sound, resulting in a
weird and incorrect sound effect.
Fix: play_sound and play_sound_with_freq_scale now calls
smlua_get_vec3f_for_play_sound before filling the sound request queue,
to retrieve the correct pointer from the Vec3f provided by smlua.
2022-04-26 20:48:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
Changes in level_info; play_transition; dev-only warp command; bug fix for moving sounds played via lua (#69)
Improved level_info.c and added functions to LUA:
const char *get_level_name_ascii(s16 courseNum, s16 levelNum, s16 areaIndex, s16 charCase):
Return a level name as an ascii string. If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const u8 *get_level_name_sm64(s16 courseNum, s16 levelNum, s16 areaIndex, s16 charCase):
Return a level name as an sm64 u8 string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const char *get_level_name(s16 courseNum, s16 levelNum, s16 areaIndex):
Shortcut for get_level_name_ascii(courseNum, levelNum, areaIndex, -1).
const char *get_star_name_ascii(s16 courseNum, s16 starNum, s16 charCase):
Return a star name as an ascii string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const u8 *get_star_name_sm64(s16 courseNum, s16 starNum, s16 charCase):
Return a star name as an sm64 u8 string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const char *get_star_name(s16 courseNum, s16 starNum):
Shortcut for get_star_name_ascii(courseNum, starNum, -1).
Added play_transition function to LUA.
I chose to copy the function declaration to smlua_misc_utils.h instead of adding area.h
to the autogen tool, as most structures, variables and functions in area.h aren't meant
to be used by LUA scripts.
Added a dev-only warp chat command.
This command signature is /warp [LEVEL] [AREA] [ACT]. Level can be either a number
or a shorthand name (bob, wf, ccm...). Area and Act are numbers.
This command is available only when building the game with DEBUG and DEVELOPMENT.
This command cannot be used if hosting through Discord.
Fixed a bug with moving sounds when they are played via a lua script.
Bug: Moving sounds (including terrain sounds, flying sound, quicksand sound)
are not played correctly when a lua script play them via a call of
play_sound or play_sound_with_freq_scale. This is due to how the moving
sounds are handled internally. They use the f32 pointer provided to the
play_sound functions to decide if the sound must be kept playing,
stopped or restarted. Most of the time, the pointer provided is the
cameraToObject field of Mario's object graph node. Since smlua uses a
circular buffer for Vec3f conversion, this pointer is lost, and the
sound engine can't decide what to do with the sound, resulting in a
weird and incorrect sound effect.
Fix: play_sound and play_sound_with_freq_scale now calls
smlua_get_vec3f_for_play_sound before filling the sound request queue,
to retrieve the correct pointer from the Vec3f provided by smlua.
2022-04-26 20:48:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 level_register(const char* scriptEntryName, s16 courseNum, const char* fullName, const char* shortName, u32 acousticReach, u32 echoLevel1, u32 echoLevel2, u32 echoLevel3);`
|
Changes in level_info; play_transition; dev-only warp command; bug fix for moving sounds played via lua (#69)
Improved level_info.c and added functions to LUA:
const char *get_level_name_ascii(s16 courseNum, s16 levelNum, s16 areaIndex, s16 charCase):
Return a level name as an ascii string. If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const u8 *get_level_name_sm64(s16 courseNum, s16 levelNum, s16 areaIndex, s16 charCase):
Return a level name as an sm64 u8 string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const char *get_level_name(s16 courseNum, s16 levelNum, s16 areaIndex):
Shortcut for get_level_name_ascii(courseNum, levelNum, areaIndex, -1).
const char *get_star_name_ascii(s16 courseNum, s16 starNum, s16 charCase):
Return a star name as an ascii string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const u8 *get_star_name_sm64(s16 courseNum, s16 starNum, s16 charCase):
Return a star name as an sm64 u8 string.
If charCase is 1, capitalize all letters.
If charCase is -1, decapitalize all letters except the first one of each word.
const char *get_star_name(s16 courseNum, s16 starNum):
Shortcut for get_star_name_ascii(courseNum, starNum, -1).
Added play_transition function to LUA.
I chose to copy the function declaration to smlua_misc_utils.h instead of adding area.h
to the autogen tool, as most structures, variables and functions in area.h aren't meant
to be used by LUA scripts.
Added a dev-only warp chat command.
This command signature is /warp [LEVEL] [AREA] [ACT]. Level can be either a number
or a shorthand name (bob, wf, ccm...). Area and Act are numbers.
This command is available only when building the game with DEBUG and DEVELOPMENT.
This command cannot be used if hosting through Discord.
Fixed a bug with moving sounds when they are played via a lua script.
Bug: Moving sounds (including terrain sounds, flying sound, quicksand sound)
are not played correctly when a lua script play them via a call of
play_sound or play_sound_with_freq_scale. This is due to how the moving
sounds are handled internally. They use the f32 pointer provided to the
play_sound functions to decide if the sound must be kept playing,
stopped or restarted. Most of the time, the pointer provided is the
cameraToObject field of Mario's object graph node. Since smlua uses a
circular buffer for Vec3f conversion, this pointer is lost, and the
sound engine can't decide what to do with the sound, resulting in a
weird and incorrect sound effect.
Fix: play_sound and play_sound_with_freq_scale now calls
smlua_get_vec3f_for_play_sound before filling the sound request queue,
to retrieve the correct pointer from the Vec3f provided by smlua.
2022-04-26 20:48:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [smlua_level_util_get_info](#smlua_level_util_get_info)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local CustomLevelInfoValue = smlua_level_util_get_info(levelNum)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| levelNum | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[CustomLevelInfo](structs.md#CustomLevelInfo)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct CustomLevelInfo* smlua_level_util_get_info(s16 levelNum);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [smlua_level_util_get_info_from_short_name](#smlua_level_util_get_info_from_short_name)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local CustomLevelInfoValue = smlua_level_util_get_info_from_short_name(shortName)`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| shortName | `string` |
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
[CustomLevelInfo](structs.md#CustomLevelInfo)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`struct CustomLevelInfo* smlua_level_util_get_info_from_short_name(char* shortName);`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [warp_exit_level](#warp_exit_level)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local booleanValue = warp_exit_level(aDelay)`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| aDelay | `integer` |
|
2022-05-14 21:28:25 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `boolean`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`bool warp_exit_level(s32 aDelay);`
|
2022-05-14 21:28:25 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [warp_restart_level](#warp_restart_level)
|
2022-08-26 00:42:30 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local booleanValue = warp_restart_level()`
|
2022-08-26 00:42:30 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `boolean`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`bool warp_restart_level(void);`
|
2022-09-13 03:00:51 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [warp_to_castle](#warp_to_castle)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local booleanValue = warp_to_castle(aLevel)`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| aLevel | `integer` |
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `boolean`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`bool warp_to_castle(s32 aLevel);`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [warp_to_level](#warp_to_level)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local booleanValue = warp_to_level(aLevel, aArea, aAct)`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| aLevel | `integer` |
|
|
|
|
| aArea | `integer` |
|
|
|
|
| aAct | `integer` |
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `boolean`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`bool warp_to_level(s32 aLevel, s32 aArea, s32 aAct);`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [warp_to_start_level](#warp_to_start_level)
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local booleanValue = warp_to_start_level()`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `boolean`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`bool warp_to_start_level(void);`
|
2022-05-08 07:29:17 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [warp_to_warpnode](#warp_to_warpnode)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local booleanValue = warp_to_warpnode(aLevel, aArea, aAct, aWarpId)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| aLevel | `integer` |
|
|
|
|
| aArea | `integer` |
|
|
|
|
| aAct | `integer` |
|
|
|
|
| aWarpId | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `boolean`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`bool warp_to_warpnode(s32 aLevel, s32 aArea, s32 aAct, s32 aWarpId);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
---
|
2022-11-30 08:37:12 +00:00
|
|
|
# functions from smlua_math_utils.h
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [clamp](#clamp)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = clamp(a, b, c)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| a | `integer` |
|
|
|
|
| b | `integer` |
|
|
|
|
| c | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 clamp(s32 a, s32 b, s32 c);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [clampf](#clampf)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = clampf(a, b, c)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| a | `number` |
|
|
|
|
| b | `number` |
|
|
|
|
| c | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 clampf(f32 a, f32 b, f32 c);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [max](#max)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = max(a, b)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| a | `integer` |
|
|
|
|
| b | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-08-06 05:17:05 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 max(s32 a, s32 b);`
|
2022-08-06 05:17:05 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [maxf](#maxf)
|
2022-08-06 05:17:05 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = maxf(a, b)`
|
2022-08-06 05:17:05 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| a | `number` |
|
|
|
|
| b | `number` |
|
2022-08-06 05:17:05 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 maxf(f32 a, f32 b);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [min](#min)
|
2022-04-29 03:42:29 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = min(a, b)`
|
2022-04-29 03:42:29 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| a | `integer` |
|
|
|
|
| b | `integer` |
|
2022-04-29 03:42:29 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 min(s32 a, s32 b);`
|
2022-04-29 03:42:29 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [minf](#minf)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = minf(a, b)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| a | `number` |
|
|
|
|
| b | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 minf(f32 a, f32 b);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [sqr](#sqr)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = sqr(x)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| x | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 sqr(s32 x);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [sqrf](#sqrf)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = sqrf(x)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| x | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 sqrf(f32 x);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
---
|
|
|
|
# functions from smlua_misc_utils.h
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
|
|
## [add_scroll_target](#add_scroll_target)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`add_scroll_target(index, name, offset, size)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| index | `integer` |
|
|
|
|
| name | `string` |
|
|
|
|
| offset | `integer` |
|
|
|
|
| size | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void add_scroll_target(u32 index, const char* name, u32 offset, u32 size);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [allocate_mario_action](#allocate_mario_action)
|
2022-04-29 03:42:29 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = allocate_mario_action(actFlags)`
|
2022-04-29 03:42:29 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| actFlags | `integer` |
|
2022-04-29 03:42:29 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-29 03:42:29 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u32 allocate_mario_action(u32 actFlags);`
|
2022-04-29 03:42:29 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_enable_analog_cam](#camera_config_enable_analog_cam)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`camera_config_enable_analog_cam(enable)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| enable | `boolean` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void camera_config_enable_analog_cam(bool enable);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_enable_free_cam](#camera_config_enable_free_cam)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`camera_config_enable_free_cam(enable)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| enable | `boolean` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void camera_config_enable_free_cam(bool enable);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_enable_mouse_look](#camera_config_enable_mouse_look)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`camera_config_enable_mouse_look(enable)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| enable | `boolean` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void camera_config_enable_mouse_look(bool enable);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_get_aggression](#camera_config_get_aggression)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = camera_config_get_aggression()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u32 camera_config_get_aggression(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_get_deceleration](#camera_config_get_deceleration)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = camera_config_get_deceleration()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u32 camera_config_get_deceleration(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_get_pan_level](#camera_config_get_pan_level)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = camera_config_get_pan_level()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u32 camera_config_get_pan_level(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_get_x_sensitivity](#camera_config_get_x_sensitivity)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = camera_config_get_x_sensitivity()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `integer`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u32 camera_config_get_x_sensitivity(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_get_y_sensitivity](#camera_config_get_y_sensitivity)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = camera_config_get_y_sensitivity()`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u32 camera_config_get_y_sensitivity(void);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_invert_x](#camera_config_invert_x)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`camera_config_invert_x(invert)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| invert | `boolean` |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void camera_config_invert_x(bool invert);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_invert_y](#camera_config_invert_y)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`camera_config_invert_y(invert)`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| invert | `boolean` |
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void camera_config_invert_y(bool invert);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_is_analog_cam_enabled](#camera_config_is_analog_cam_enabled)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local booleanValue = camera_config_is_analog_cam_enabled()`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `boolean`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`bool camera_config_is_analog_cam_enabled(void);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_is_free_cam_enabled](#camera_config_is_free_cam_enabled)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local booleanValue = camera_config_is_free_cam_enabled()`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `boolean`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`bool camera_config_is_free_cam_enabled(void);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_is_mouse_look_enabled](#camera_config_is_mouse_look_enabled)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local booleanValue = camera_config_is_mouse_look_enabled()`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `boolean`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`bool camera_config_is_mouse_look_enabled(void);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_is_x_inverted](#camera_config_is_x_inverted)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local booleanValue = camera_config_is_x_inverted()`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `boolean`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`bool camera_config_is_x_inverted(void);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_is_y_inverted](#camera_config_is_y_inverted)
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local booleanValue = camera_config_is_y_inverted()`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `boolean`
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`bool camera_config_is_y_inverted(void);`
|
2022-11-12 13:01:50 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_set_aggression](#camera_config_set_aggression)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`camera_config_set_aggression(value)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| value | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void camera_config_set_aggression(u32 value);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_set_deceleration](#camera_config_set_deceleration)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`camera_config_set_deceleration(value)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
2022-11-30 08:37:12 +00:00
|
|
|
| ----- | ---- |
|
|
|
|
| value | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void camera_config_set_deceleration(u32 value);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_set_pan_level](#camera_config_set_pan_level)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`camera_config_set_pan_level(value)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| value | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void camera_config_set_pan_level(u32 value);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_set_x_sensitivity](#camera_config_set_x_sensitivity)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`camera_config_set_x_sensitivity(value)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| value | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void camera_config_set_x_sensitivity(u32 value);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_config_set_y_sensitivity](#camera_config_set_y_sensitivity)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`camera_config_set_y_sensitivity(value)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| value | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void camera_config_set_y_sensitivity(u32 value);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_freeze](#camera_freeze)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`camera_freeze()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void camera_freeze(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2023-02-21 05:23:15 +00:00
|
|
|
## [camera_is_frozen](#camera_is_frozen)
|
|
|
|
|
|
|
|
### Lua Example
|
|
|
|
`local booleanValue = camera_is_frozen()`
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `boolean`
|
|
|
|
|
|
|
|
### C Prototype
|
|
|
|
`bool camera_is_frozen(void);`
|
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [camera_unfreeze](#camera_unfreeze)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`camera_unfreeze()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void camera_unfreeze(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2023-02-18 21:23:51 +00:00
|
|
|
## [course_is_main_course](#course_is_main_course)
|
|
|
|
|
|
|
|
### Lua Example
|
|
|
|
`local booleanValue = course_is_main_course(levelNum)`
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| levelNum | `integer` |
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `boolean`
|
|
|
|
|
|
|
|
### C Prototype
|
|
|
|
`bool course_is_main_course(u16 levelNum);`
|
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [deref_s32_pointer](#deref_s32_pointer)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = deref_s32_pointer(pointer)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| pointer | `Pointer` <`integer`> |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 deref_s32_pointer(s32* pointer);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [get_current_save_file_num](#get_current_save_file_num)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = get_current_save_file_num()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 get_current_save_file_num(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [get_dialog_box_state](#get_dialog_box_state)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = get_dialog_box_state()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s8 get_dialog_box_state();`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [get_dialog_id](#get_dialog_id)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = get_dialog_id()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s16 get_dialog_id(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [get_environment_region](#get_environment_region)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = get_environment_region(index)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| index | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 get_environment_region(u8 index);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [get_hand_foot_pos_x](#get_hand_foot_pos_x)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = get_hand_foot_pos_x(m, index)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
|
|
|
| index | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 get_hand_foot_pos_x(struct MarioState* m, u8 index);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [get_hand_foot_pos_y](#get_hand_foot_pos_y)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = get_hand_foot_pos_y(m, index)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
|
|
|
| index | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 get_hand_foot_pos_y(struct MarioState* m, u8 index);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [get_hand_foot_pos_z](#get_hand_foot_pos_z)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local numberValue = get_hand_foot_pos_z(m, index)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| m | [MarioState](structs.md#MarioState) |
|
|
|
|
| index | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `number`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`f32 get_hand_foot_pos_z(struct MarioState* m, u8 index);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [get_last_star_or_key](#get_last_star_or_key)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = get_last_star_or_key()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 get_last_star_or_key(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [get_network_area_timer](#get_network_area_timer)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = get_network_area_timer()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u32 get_network_area_timer(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [get_temp_s32_pointer](#get_temp_s32_pointer)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local PointerValue = get_temp_s32_pointer(initialValue)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| initialValue | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `Pointer` <`integer`>
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32* get_temp_s32_pointer(s32 initialValue);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [hud_get_value](#hud_get_value)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = hud_get_value(type)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| type | [enum HudDisplayValue](constants.md#enum-HudDisplayValue) |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`s32 hud_get_value(enum HudDisplayValue type);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [hud_hide](#hud_hide)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`hud_hide()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void hud_hide(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2023-02-21 05:23:15 +00:00
|
|
|
## [hud_is_hidden](#hud_is_hidden)
|
|
|
|
|
|
|
|
### Lua Example
|
|
|
|
`local booleanValue = hud_is_hidden()`
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- `boolean`
|
|
|
|
|
|
|
|
### C Prototype
|
|
|
|
`bool hud_is_hidden(void);`
|
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [hud_render_power_meter](#hud_render_power_meter)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`hud_render_power_meter(health, x, y, width, height)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| health | `integer` |
|
|
|
|
| x | `number` |
|
|
|
|
| y | `number` |
|
|
|
|
| width | `number` |
|
|
|
|
| height | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void hud_render_power_meter(s32 health, f32 x, f32 y, f32 width, f32 height);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [hud_set_value](#hud_set_value)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`hud_set_value(type, value)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| type | [enum HudDisplayValue](constants.md#enum-HudDisplayValue) |
|
|
|
|
| value | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void hud_set_value(enum HudDisplayValue type, s32 value);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [hud_show](#hud_show)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`hud_show()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void hud_show(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [is_game_paused](#is_game_paused)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local booleanValue = is_game_paused()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
- None
|
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `boolean`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`bool is_game_paused(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [is_transition_playing](#is_transition_playing)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local booleanValue = is_transition_playing()`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `boolean`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`bool is_transition_playing(void);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [movtexqc_register](#movtexqc_register)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`movtexqc_register(name, level, area, type)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| name | `string` |
|
|
|
|
| level | `integer` |
|
|
|
|
| area | `integer` |
|
|
|
|
| type | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void movtexqc_register(const char* name, s16 level, s16 area, s16 type);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [play_transition](#play_transition)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`play_transition(transType, time, red, green, blue)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| transType | `integer` |
|
|
|
|
| time | `integer` |
|
|
|
|
| red | `integer` |
|
|
|
|
| green | `integer` |
|
|
|
|
| blue | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void play_transition(s16 transType, s16 time, u8 red, u8 green, u8 blue);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [save_file_set_using_backup_slot](#save_file_set_using_backup_slot)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`save_file_set_using_backup_slot(usingBackupSlot)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| usingBackupSlot | `boolean` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void save_file_set_using_backup_slot(bool usingBackupSlot);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [set_environment_region](#set_environment_region)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`set_environment_region(index, value)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
2022-11-30 08:37:12 +00:00
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
|
|
|
| index | `integer` |
|
|
|
|
| value | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void set_environment_region(u8 index, s32 value);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [set_last_star_or_key](#set_last_star_or_key)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`set_last_star_or_key(value)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| value | `integer` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void set_last_star_or_key(u8 value);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [set_override_far](#set_override_far)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`set_override_far(far)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| far | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- None
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void set_override_far(f32 far);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [set_override_fov](#set_override_fov)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`set_override_fov(fov)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| fov | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void set_override_fov(f32 fov);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
## [set_override_near](#set_override_near)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`set_override_near(near)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| near | `number` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
|
|
|
- None
|
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`void set_override_near(f32 near);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-11-30 08:37:12 +00:00
|
|
|
---
|
|
|
|
# functions from smlua_model_utils.h
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
|
|
## [smlua_model_util_get_id](#smlua_model_util_get_id)
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Lua Example
|
2022-11-30 08:37:12 +00:00
|
|
|
`local integerValue = smlua_model_util_get_id(name)`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
| Field | Type |
|
|
|
|
| ----- | ---- |
|
2022-11-30 08:37:12 +00:00
|
|
|
| name | `string` |
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### Returns
|
2022-11-30 08:37:12 +00:00
|
|
|
- `integer`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
### C Prototype
|
2022-11-30 08:37:12 +00:00
|
|
|
`u32 smlua_model_util_get_id(const char* name);`
|
2022-04-23 01:41:42 +00:00
|
|
|
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
---
|
|
|
|
|
2022-11-12 13:01:50 +00:00
|
|
|
[< prev](functions-3.md) | [1](functions.md) | [2](functions-2.md) | [3](functions-3.md) | 4 | [5](functions-5.md) | [next >](functions-5.md)]
|
2022-04-23 01:41:42 +00:00
|
|
|
|