64 {
67
70 vector smoke_point_pos = action_data.
m_Target.GetObject().GetSelectionPositionMS( OvenIndoor.OVENPOINT_SMOKE_POSITION +
m_FirePointIndex.ToString() );
71 vector smoke_point_pos_world = action_data.
m_Target.GetObject().ModelToWorld( smoke_point_pos );
73
74 OvenIndoor fp_indoor = OvenIndoor.Cast( obj );
75 if ( fp_indoor )
76 {
79
80 vector fprot = vector.Zero;
82 fp_indoor.SetOrientation( fprot );
83
84 fp_indoor.Synchronize();
85
86
87 if (!
g_Game.IsMultiplayer())
88 {
90 action_data.
m_Player.LocalTakeEntityToTargetAttachment(fp_indoor, action_data.
m_MainItem);
91 }
92 else
93 action_data.
m_Player.ServerTakeEntityToTargetAttachment(fp_indoor, action_data.
m_MainItem);
94 }
95 }
void ClearInventoryReservationEx(ActionData action_data)
ActionPlaceFireplaceIndoor m_FirePointIndex
BuildingWithFireplaceNasdara BuildingWithFireplace
const int ECE_PLACE_ON_SURFACE
ref ActionTarget m_Target
string GetOvenType(int firePointIndex)