Difference between revisions of "SurrenderToEnemies"
|Line 1:||Line 1:|
Causes all creatures in a meter (tile) radius to stop actions, improves the creature's reputation with nearby enemies for 3 minutes. Only works for NPCs.
Causes all creatures in a
Latest revision as of 16:34, 13 September 2020
Causes all creatures in a 50 meter (54.5 tile) radius to stop actions, improves the creature's reputation with nearby enemies for 3 minutes. Only works for NPCs.
Use this on an NPC to cause all nearby creatures to stop what they are doing and sets the NPC's enemies within this range to be neutral towards the NPC for roughly 3 minutes. If this command is run on a PC or an object that is not a creature, nothing will happen.
Very useful function. Can for instance be used to make an enemy surrender just before dying, to try and cut a deal with his attackers...
It applies to creatures in a radius of about 50m from the caller, which is sufficient for almost all purposes (the official Bioware description says 10m, but that seems to be out-of-date).
Note that the function applies to the caller. As always, if the creature due to surrender is not the caller of the current script, AssignCommand can be used. However, in that case, the function will not take effect immediately. Anything that needs to happen afterwards must be delayed (by assigning further commands to the same creature, for example).
The function adjusts personal reputation. Even members of global factions are affected.
Previous bug about wounding fixed in 1.62, the function does remove wounding effects from creatures so you can talk to them.
It is possible to make the caller change sides during a battle:
author: John Shuell, editor: Jasperre