DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnSuccess()

override void OnSuccess ( EntityAI new_item)

См. определение в файле SeedPackBase.c строка 67

68 {
69 super.OnSuccess(new_item);
70
71 //spawns wrapping Paper
72 if (m_Player)
73 {
74 m_Player.SpawnEntityOnGroundRaycastDispersed("Paper",DEFAULT_SPAWN_DISTANCE,UAItemsSpreadRadius.NARROW);
75 }
76 else
77 {
78 GetGame().CreateObjectEx("Paper", new_item.GetHierarchyRoot().GetPosition(), ECE_PLACE_ON_SURFACE);
79 }
80 }
const int ECE_PLACE_ON_SURFACE
Определения CentralEconomy.c:37
DayZPlayer m_Player
Определения Hand_Events.c:42
const float DEFAULT_SPAWN_DISTANCE
Определения RecipeBase.c:3
proto native Object CreateObjectEx(string type, vector pos, int iFlags, int iRotation=RF_DEFAULT)
Creates object of certain type.
const float NARROW
Определения ActionConstants.c:127
proto native CGame GetGame()

Перекрестные ссылки CGame::CreateObjectEx(), DEFAULT_SPAWN_DISTANCE, ECE_PLACE_ON_SURFACE, GetGame(), m_Player и UAItemsSpreadRadius::NARROW.