2024r176 Ex1 to 2024r176 Ex2¶
Table of Contents¶
Breaking Changes¶
IsLocal -> IsWornByMe¶
- Description: The
IsLocalglobal was causing a lot of confusion. So it was renamed toIsWornByMe - Usage:
1 2 3 4 5 6
if RunningInAvatar then print('This script is running on an Avatar!') if IsWornByMe then print('And is being worn by me!!!') end end
Bug Fixes¶
- Fixed the global variable
IsSpawnedByMe, it should now work properly on props
New Features¶
AvatarAPI¶
AvatarAPI.LocalAvataris now available globally as a way to get a reference to the Local Player worn Avatar instanceWeareris now available as Avatar property. It returns the PlayerAPIBase of the Avatar's wearer
PlayerAPI¶
IsFriendsWith(string userId)method is now available on PlayerAPIIsFlyingproperty is now available on LocalPlayerAPISetPositionandSetRotationmethods are now available on LocalPlayerAPITeleportPlayerTomethod with a Quaternion rotation target is now available on LocalPlayerAPI