[Quest API] Add GetDefaultRaceSize() overloads to Perl/Lua (#3320)

# Perl
- Add `$mob->GetDefaultRaceSize(race_id)`.
- Add `$mob->GetDefaultRaceSize(race_id, gender_id)`.

# Lua
- Add `mob:GetDefaultRaceSize(race_id)`.
- Add `mob:GetDefaultRaceSize(race_id, gender_id)`.

# Notes
- This allows you to get a default size for a race and gender that isn't the current mob's race and gender.
This commit is contained in:
Alex King
2023-04-29 20:53:49 -04:00
committed by GitHub
parent 09a5551de1
commit 6a393bf0c3
5 changed files with 34 additions and 5 deletions
+1 -1
View File
@@ -1205,7 +1205,7 @@ public:
void SendTo(float new_x, float new_y, float new_z);
void SendToFixZ(float new_x, float new_y, float new_z);
float GetZOffset() const;
float GetDefaultRaceSize() const;
float GetDefaultRaceSize(int race_id = -1, int gender_id = -1) const;
void FixZ(int32 z_find_offset = 5, bool fix_client_z = false);
float GetFixedZ(const glm::vec3 &destination, int32 z_find_offset = 5);
virtual int GetStuckBehavior() const { return 0; }