48 if ( player.IsPlacingLocal() )
52 if (
Class.CastTo(hesco,target.GetObject()) )
54 if ( hesco.CanBeFilledAtPosition( player.GetPosition() ) )
56 if ( hesco.GetState() == HescoBox.UNFOLDED )
61 else if( hesco.GetState() == HescoBox.FILLED)
76 if (
Class.CastTo(hesco,action_data.m_Target.GetObject()) )
78 const float ITEM_DAMAGE = 5;
79 action_data.m_MainItem.DecreaseHealth(
"",
"", ITEM_DAMAGE);
81 if (hesco.GetState() == HescoBox.UNFOLDED)
85 else if (hesco.GetState() == HescoBox.FILLED)