PC version 1.0.150192
Description
Description
Details
Details
- Severity
- Major
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 7 x64
- Operating System Version
- 6.1(7601)
- Category
- Dedicated Server
Steps To Reproduce
- Start server
- Create from script this:
void SpawnItemToPlayer(PlayerBase player, string item_type) { if (player) { private PlayerIdentity identify_player = player.GetIdentity(); if (identify_player) { private EntityAI item = player.GetHumanInventory().CreateInInventory(item_type); private ItemBase item_Bass; if (item == NULL) { item = player.GetHumanInventory().CreateInHands(item_type); if (item == NULL) { private vector pos_player = player.GetPosition(); Object spawned_obj = GetGame().CreateObject(item_type, pos_player); if (spawned_obj) { //EntityAI obj = EntityAI.Cast(spawned_obj); Print("[SpawnItem]: CREATED FOR PLAYER - " + identify_player.GetName() + " ITEM " + item_type + " Around Player"); } else { Print("[SpawnItem]: CAN'T BE CREATED FOR PLAYER - " + identify_player.GetName() + " ITEM " + item_type + " Around Player in position " + pos_player.ToString()); } } else { item_Bass = ItemBase.Cast(item); Print("[SpawnItem]: CREATED FOR PLAYER - " + identify_player.GetName() + " ITEM " + item_type + " In Hands Player"); } } else { item_Bass = ItemBase.Cast(item); Print("[SpawnItem]: CREATED FOR PLAYER - " + identify_player.GetName() + " ITEM " + item_type + " IN Inventoiry Player or Hands"); } } else { Print("[SpawnItem]: Can't be created item ITEM " + item_type + " for player: " + player.ToString() + " - Player identify is not correct!"); } } else { Print("[SpawnItem]: Can't be created item ITEM " + item_type + " for player: " + player.ToString() + " - Player is not alive or not correct!"); } }
item:
Bandage
- Get in script.log error:
SCRIPT : [SpawnItem]: CAN'T BE CREATED FOR PLAYER - Survivor ITEM Bandage Around Player in position <13105.463867, 1.631361, 7965.671387>
- Create from this script this item:
Rag
- Get this in scritp.log
SCRIPT : [SpawnItem]: CREATED FOR PLAYER - Survivor ITEM Rag IN Inventoiry Player or Hands
What is a problem?