74 {
75 PlayerBase other_player = PlayerBase.Cast(target.GetObject());
76 EntityAI item_in_hands_source = player.GetItemInHands();
77
78 if( other_player.IsRestrained() )
79 {
80
81 EntityAI item_in_hands_target = other_player.GetItemInHands();
82
83 CachedObjectsArrays.ARRAY_STRING.Clear();
84
85 if( item_in_hands_target )
86 {
87 item_in_hands_target.ConfigGetTextArray( "CanBeUnrestrainedBy", CachedObjectsArrays.ARRAY_STRING );
88
89 string item_in_hands_name = item_in_hands_source.GetType();
90
91 for(int i = 0; i < CachedObjectsArrays.ARRAY_STRING.Count(); i++)
92 {
93 if((i % 2) == 0)
94 {
95 string class_name = CachedObjectsArrays.ARRAY_STRING.Get(i);
97 {
98 return true;
99 }
100 }
101 }
102 }
103 }
104 return false;
105 }
class OptionSelectorMultistate extends OptionSelector class_name
proto native CGame GetGame()