Skip to content

five-on-it / packages/sim/src/griefing / sameParty

Function: sameParty() ​

sameParty(sim, a, b): boolean

Defined in: packages/sim/src/griefing.ts:103

Whether two characters are in the same party: a party member is never carjacked, stays aboard when the car is, and under rivals is never hurt by another. The server sets Character.party (0 is none) from the players' parties.

Parameters ​

sim ​

SimWorld

a ​

number

b ​

number

Returns ​

boolean