This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
building:scripts:api:custom_factions_default_factions [2023/06/15 08:23] spankitty ↷ Page name changed from building:scripts:api:getsetfactionid to building:scripts:api:custom_factions_default_factions |
building:scripts:api:custom_factions_default_factions [2023/06/15 08:29] spankitty |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== GetFactionId / SetFactionId ====== | + | ====== Factions ====== |
+ | |||
+ | |||
+ | ===== Custom Factions ===== | ||
Sinfar's systems support the manipulation of factions, including custom ones. Each faction is given a unique ID that can then be given different reputations with other factions. | Sinfar's systems support the manipulation of factions, including custom ones. Each faction is given a unique ID that can then be given different reputations with other factions. | ||
Line 11: | Line 14: | ||
---- | ---- | ||
- | ===== Functions ===== | + | ===== Default Factions ===== |
<code>int GetFactionId(object oObject);</code> | <code>int GetFactionId(object oObject);</code> | ||
Line 21: | Line 24: | ||
3 = Merchant\\ | 3 = Merchant\\ | ||
4 = Defender | 4 = Defender | ||
- | |||
- | |||
<code>void SetFactionId(object oObject, int nFaction);</code> | <code>void SetFactionId(object oObject, int nFaction);</code> | ||
This will set oObject's Faction ID to nFaction. | This will set oObject's Faction ID to nFaction. | ||
- | --- //[[zoeyalex94@gmail.com|murdrkitten]] 2019/03/26 16:56// |