PartyMember
Example
const { Launcher } = require('epicgames-client');
const Fortnite = require('epicgames-fortnite-client');
const launcher = new Launcher({
email: 'E-MAIL',
password: 'PASSWORD',
});
(async () => {
if(!await launcher.init() || !await launcher.login()) {
throw new Error('Error while initialize or login process.');
}
const app = await launcher.runGame(Fortnite);
await app.party.me.setReady(true);
})();
Properties
id
The member's account id.
party
Member's Party
object.
connections
List of member connections (contains communicator jids).
role
Member's role. In Fortnite, CAPTAIN
is party leader.
joinedAt
Methods
epicgames-fortnite-client
setReady(isReady) // only in - Arguments
- isReady - boolean
epicgames-fortnite-client
setInputType(inputType) // only in - Arguments
- inputType -
EInputType
- inputType -
epicgames-fortnite-client
setPlatform(platform) // only in - Arguments
- platform -
EPlatform
- platform -
epicgames-fortnite-client
setEmote(asset) // only in - Arguments
- asset - string
epicgames-fortnite-client
clearEmote() // only in epicgames-fortnite-client
setOutfit(asset) // only in - Arguments
- asset - string
epicgames-fortnite-client
setBackpack(asset) // only in - Arguments
- asset - string
epicgames-fortnite-client
setPickaxe(asset) // only in - Arguments
- asset - string
epicgames-fortnite-client
setBanner(level, icon, color) // only in - Arguments
- level - number
- icon - string
- color - string
epicgames-fortnite-client
setBattlePass(hasPuchased, level, selfBoostXp, friendBoostXp) // only in - Arguments
- hasPuchased - boolean
- level - number
- selfBoostXp - number
- friendBoostXp - number
kick()
promote()
Promote member to leader role.