Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PrefabSpawnCallback.c
Go to the documentation of this file.
2{
3 protected BaseInventoryStorageComponent m_TargetStorage;
4
5 //------------------------------------------------------------------------------------------------
6 override protected void OnComplete()
7 {
8 SCR_HandSlotStorageComponent handSlotStorage = SCR_HandSlotStorageComponent.Cast(m_TargetStorage);
9 if (!handSlotStorage)
10 return;
11
12 //since spawning of new entities happens on server then we need to call server version of skip animation to inform the owner that they should not wait for the animation
13 handSlotStorage.SkipAnimation_S();
14 }
15
16 //------------------------------------------------------------------------------------------------
17 void SCR_PrefabSpawnCallback(BaseInventoryStorageComponent targetStorage)
18 {
19 m_TargetStorage = targetStorage;
20 }
21}
BaseInventoryStorageComponent m_TargetStorage
void SCR_PrefabSpawnCallback(BaseInventoryStorageComponent targetStorage)