Skip to content

Commit

Permalink
Refine Humanoid.Seated (#1306)
Browse files Browse the repository at this point in the history
Edit made by Osyris. Makes sure that whenever `active` is true,
`currentSeatPart` is guaranteed to exist.
  • Loading branch information
tacheometry authored Sep 16, 2024
1 parent 04d1a74 commit 32360a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/customDefinitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,11 @@ interface HttpService extends Instance {

interface Humanoid extends Instance {
readonly AnimationPlayed: RBXScriptSignal<(animationTrack: AnimationTrack) => void>;
readonly Seated: RBXScriptSignal<(active: boolean, currentSeatPart: Seat | VehicleSeat | undefined) => void>;
readonly Seated: RBXScriptSignal<
(
...args: [active: true, currentSeatPart: Seat | VehicleSeat] | [active: false, currentSeatPart: undefined]
) => void
>;
readonly Touched: RBXScriptSignal<(touchingPart: BasePart, humanoidPart: BasePart) => void>;
GetAppliedDescription(this: Humanoid): HumanoidDescription;
GetPlayingAnimationTracks(this: Humanoid): Array<AnimationTrack>;
Expand Down

0 comments on commit 32360a5

Please sign in to comment.