127 {
128 super.OnStartServer(action_data);
129
131 if (!poActionData)
132 return;
133
135 {
136 EntityAI entity_for_placing = poActionData.m_MainItem;
137 poActionData.m_Player.SetLocalProjectionPosition(poActionData.
m_Position);
138 poActionData.m_Player.SetLocalProjectionOrientation(poActionData.
m_Orientation);
139
140 if (poActionData.m_MainItem)
141 {
142 poActionData.m_Player.PlacingStartServer(poActionData.m_MainItem);
143
145 poActionData.m_MainItem.SetIsBeingPlaced(true);
146 }
147 }
148 else
149 {
150
151 poActionData.m_Player.PlacingStartServer(poActionData.m_MainItem);
152 poActionData.m_MainItem.SetIsBeingPlaced(true);
153 }
154
155 if (poActionData.m_MainItem.GetPlaceSoundset() != string.Empty)
156 poActionData.m_MainItem.StartItemSoundServer(SoundConstants.ITEM_PLACE);
157
158 if (poActionData.m_MainItem.GetLoopDeploySoundset() != string.Empty)
159 poActionData.m_MainItem.StartItemSoundServer(SoundConstants.ITEM_DEPLOY_LOOP);
160 }
proto native bool AddActionJuncture(Man player, notnull EntityAI item, int timeout_ms)
proto native CGame GetGame()