CFC-Servers / CFC-Servers/cfc_e2_lib

Add Factions-based functions

Open
#3 0 comments 0 reactions 1 assignee Claimed by @justinmuskopf View on GitHub
enhancement
Dominant language
Lua
Stars
2
Forks
4
PR merge metrics
No merged PRs in 30d

Description

- [x] `E:isInFaction()` returns `1` or `0`
- [x] `E:isNotInFaction()` returns `1` or `0`
- [x] `E:getFaction()` returns faction id, `0` if none
- [ ] `getFactionName(N)` returns the faction name for the given ID, `""` if none
- [ ] `getFactionMembers(N)` returns an array of faction members' steam IDs for the given faction ID, `[]` if none
- [ ] `getOnlineFactionMembers(N)` returns an array online faction members for the given ID. Each entry is the player entity `[]` if none
- [ ] `getOnlineFactions()` returns a table of `K,V` where `K` is the faction ID, and `V` is an array of player entities. Empty table if none.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.