SetIsTemporaryNeutral(object, object, int, float)
Causes an creature to consider another creature neutral indefintely or for a fixed time.
void SetIsTemporaryNeutral( object oTarget, object oSource = OBJECT_SELF, int bDecays = FALSE, float fDurationInSeconds = 180.0f );
Parameters
oTarget
The object whose reputation will be altered.
oSource
The creature whose opinion will change. (Default: OBJECT_SELF)
bDecays
If this is TRUE, the neutrality decays over fDurationInSeconds; otherwise it is indefinite. (Default: FALSE)
fDurationInSeconds
This is only used if bDecays is TRUE, it is how long the neutrality lasts. (Default: 180.0f)
Description
Make oSource temporarily neutral to oTarget using personal reputation.
Note: If bDecays is TRUE, the personal reputation amount decreases in sizeover fDurationInSeconds. Neutrality will only be in effect as long as (faction reputation + total personal reputation) > REPUTATION_TYPE_ENEMY and (faction reputation + total personal reputation) < REPUTATION_TYPE_FRIEND.
Version
1.22
See Also
categories: | Reputation/Faction Functions |
constants: | REPUTATION_TYPE_* Constants |
author: Tom Cassiotis
Send comments on this topic.