794 {
795 UIScriptedMenu menu_curr =
g_Game.GetUIManager().GetMenu();
796
797 if ( menu_curr == NULL )
798 {
799 PlayerBase player = PlayerBase.Cast(
g_Game.GetPlayer() );
800
802 {
803 player.SetIsInThirdPerson(!player.IsInThirdPerson());
804 }
805
806 vector pos_player, pos_direction;
808
809
810 string clipboard;
811 g_Game.CopyFromClipboard(clipboard);
812
814 {
815
816 if (DeveloperFreeCamera.IsFreeCameraEnabled())
818 else
820 }
821 else
822 {
824 clipboard.
Split(
",", items );
825
826 foreach (string item:items)
827 {
828 if (DeveloperFreeCamera.IsFreeCameraEnabled())
830 else
832 }
833 }
834
835 }
836
837 return NULL;
838 }
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)
class array< Class T > 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'.