681 {
683
684 if ( menu_curr == NULL )
685 {
687 if ( player )
688 {
689 if ( !
GetGame().GetWorld().Is3rdPersonDisabled() )
690 {
691 player.SetIsInThirdPerson(!player.IsInThirdPerson());
692 }
693
694 vector pos_player = player.GetPosition();
695
696
697 string clipboard;
699
701 {
702
703 if (DeveloperFreeCamera.IsFreeCameraEnabled())
705 else
707 }
708 else
709 {
711 clipboard.
Split(
",", items );
712
713 foreach (string item:items)
714 {
715 if (DeveloperFreeCamera.IsFreeCameraEnabled())
717 else
719 }
720 }
721
722 }
723 }
724
725 return NULL;
726 }
proto native UIManager GetUIManager()
proto void CopyFromClipboard(out string text)
EntityAI SpawnEntityOnCursorDir(PlayerBase player, string item_name, float quantity, float distance, float health=-1, bool special=false, string presetName="", bool withPhysics=false)
spawns entity in direction of cursor at specified distance
void SpawnItemOnCrosshair(notnull PlayerBase player, string itemName, float health, float quantity, float maxDist=100, bool allowFreeflight=false, bool special=false, bool withPhysics=false)
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
proto native CGame GetGame()
array< string > TStringArray
proto string Trim()
Returns trimmed string with removed leading and trailing whitespaces.
bool Contains(string sample)
Returns true if sample is substring of string.
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.