Account
News
Downloads
Community
Wiki
Walkthrough

XPKnotboneFactionFixerSCRIPT

Editor ID:
XPKnotboneFactionFixerSCRIPT


Form ID:
00077C05


Type:
Object


Script:
scn XPKnotboneFactionFixerSCRIPT
; this will be triggered once the cell is loaded
; and remove the creatures from their shared "creature" faction
; allowing the combat to initiate. After the timer expires,
; they will be added back into the faction. This is a hack.

short doFlag

ref Actor

float timer

begin onTriggerActor

set Actor to getActionRef

if Actor.getInFaction CreatureFaction == 1
set doFlag to 1
set timer to 5 ; allow five seconds before correcting factions
endif

end

Begin gameMode

if doFlag == 1
Actor.setFactionRank CreatureFaction -1
MESSAGEBOX "%0.f entnommen", Actor
endif

if timer > 0
set timer to (timer - getSecondsPassed)
endif

if timer <= 0 && doFlag == 1
Actor.setFactionRank CreatureFaction 1
MESSAGEBOX "%0.f wieder hinzugef??????gt", Actor
set doFlag to 0
endif

end


Mit der Nutzung dieser Website erklären Sie sich damit einverstanden, dass wir Cookies verwenden. Weitere Informationen hierzu finden Sie in unserer Datenschutzerklärung.
OK