745 {
746 UIScriptedMenu menu_curr =
g_Game.GetUIManager().GetMenu();
747
748 if ( menu_curr == NULL )
749 {
750 PlayerBase player = PlayerBase.Cast(
g_Game.GetPlayer() );
751
752 if ( player && !
g_Game.GetWorld().Is3rdPersonDisabled() )
753 {
754 player.SetIsInThirdPerson(!player.IsInThirdPerson());
755 }
756
757 vector pos_player, pos_direction;
759
760
761 string clipboard;
762 g_Game.CopyFromClipboard(clipboard);
763
765 {
766
767 if (DeveloperFreeCamera.IsFreeCameraEnabled())
769 else
771 }
772 else
773 {
775 clipboard.
Split(
",", items );
776
777 foreach (string item:items)
778 {
779 if (DeveloperFreeCamera.IsFreeCameraEnabled())
781 else
783 }
784 }
785
786 }
787
788 return NULL;
789 }
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(PlayerBase player, string itemName, float health, float quantity, float maxDist=100, bool allowFreeflight=false, bool special=false, bool withPhysics=false)
void GetCameraDirections(Man player, bool allowFreeflight, out vector position, out vector direction)
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'.