TobiaszPL Posted March 27, 2019 Share Posted March 27, 2019 (edited) Hey !... i have problem cause i can't find Function for this :ci know how can i do it in Conditions in CK but how can i detect Player Fight status in Script? for example something like if ( Player == IsInFight() ) debug.trace( " can't activate in Fight " )Else ; Activate EndIf Any idea how i can do it ? :c i want allow player to activate object but only if he is completly hidden ( i dont know how to detect this too xD )and only if player is not fighting with any1 i know player can't use Furniture in Fight... but its Trigger box xDDD how can i do it for TriggerBox? for example Player Enter TriggerBox and he is not fighting Script is activated and if he is in fight script is doing nothing :c i found something like this -> IsFightingControlsEnabled Ugh xD Copy paste from CK Wiki :D//Edit:{ohh xDthis IsFightingControlsEnabled were rly big when copied and now its small xD} but it test if PLAYER CAN FIGHT not if PLAYER IS IN FIGHT T_T help pls ! xD Edited March 27, 2019 by TobiaszPL Link to comment Share on other sites More sharing options...
foamyesque Posted March 27, 2019 Share Posted March 27, 2019 (edited) You want https://www.creationkit.com/index.php?title=IsInCombat_-_Actor Edited March 27, 2019 by foamyesque Link to comment Share on other sites More sharing options...
morogoth35 Posted March 27, 2019 Share Posted March 27, 2019 (edited) This should work for what you want. Event OnTriggerEnter(ObjectReference akActionRef) If (akActionRef == Game.GetPlayer()) && !(Game.GetPlayer().IsInCombat()) ; do something EndIf EndEvent Edited March 27, 2019 by morogoth35 Link to comment Share on other sites More sharing options...
TobiaszPL Posted March 27, 2019 Author Share Posted March 27, 2019 (edited) My gosh...i was looking here: https://www.creationkit.com/index.php?title=List_of_Papyrus_Functions and can't find this cause i was looking all time for something with "Fight" in name xD ugh ty morogath ^_^ !... //Edit:also Ty foamyesque but morogath show it better than you :P still TY :D and lel your name is hard to remember xD Edited March 27, 2019 by TobiaszPL Link to comment Share on other sites More sharing options...
ikonomov Posted April 3, 2020 Share Posted April 3, 2020 morogoth35, thank you! Link to comment Share on other sites More sharing options...
Recommended Posts