The methods of the CScriptBindSystem class are listed here.
|
|
Name |
Description |
|
DOC-IGNORE-BEGIN Syntax: System.ActivateLight(name, activate) NOT SUPPORTED ANYMORE. | |
|
Syntax: System.ActivatePortal( vPos, bActivate, nID ) Activates/deactivates a portal. | |
|
Syntax: System.AddCCommand( sCCommandName, sCommand, sHelp) Adds a C command to the system. | |
|
Syntax: System.ApplicationTest( pszParam ) Test the application with the specified parameters. | |
|
Syntax: System.ApplyForceToEnvironment( pos, force, radius) Applies a force to the environment. | |
|
Syntax: System.Break() Breaks the application with a fatal error message. | |
|
Syntax: System.BrowseURL(szURL) Browses a URL address. | |
|
Syntax: System.CheckHeapValid(name) Checks the heap validity. | |
|
Syntax: System.ClearConsole() Clears the console. ! Clear the console | |
|
Syntax: System.ClearKeyState() Clear the key state | |
|
Syntax: System.CreateDownload() ! Creates a download object @return download object just created | |
|
Syntax: System.DebugStats( cp ) | |
|
Syntax: System.DeformTerrain() Deforms the terrain. | |
|
Syntax: System.DeformTerrainUsingMat() Deforms the terrain using material. | |
|
Syntax: System.Draw2DLine(p1x, p1y, p2x, p2y, r, g, b, alpha ) Draws a 2D line. | |
|
Syntax: System.DrawLabel( vPos, fSize, text [, r [, g [, b [, alpha]]]] ) Draws a label with the specified parameter. | |
|
Syntax: System.DrawLine( p1, p2, r, g, b, alpha ) Draws a line. | |
|
Syntax: System.DrawText( x, y, text, font, size, p2y, r, g, b, alpha ) Draws a text. | |
|
Syntax: System.DrawTriStrip(handle, nMode, vtxs, r, g, b, alpha ) Draws a triangle strip. | |
|
Syntax: System.DumpMemoryCoverage( bUseKB ) Dumps memory coverage. | |
|
Syntax: System.DumpMemStats( bUseKB ) Dumps memory statistics. | |
|
Syntax: System.DumpMMStats() Dumps the MM statistics. | |
|
Syntax: System.DumpWinHeaps() Dumps windows heaps. | |
|
DOC-IGNORE-BEGIN Syntax: System.EnableHeatVision() Is not supported anymore. | |
|
DOC-IGNORE-BEGIN Syntax: System.EnableMainView() Feature unimplemented. | |
|
Syntax: System.EnableOceanRendering() Enables/disables ocean rendering. int CScriptBindSystem::IndoorSoundAllowed(IFunctionHandler * pH) { SCRIPT_CHECK_PARAMETERS(2); CScriptVector pVecOrigin(m_pSS,false); CScriptVector pVecDestination(m_pSS,false); IGraph *pGraph = gEnv->pAISystem->GetNodeGraph(); Vec3 start = pVecOrigin.Get(); Vec3 end = pVecDestination.Get(); if ((start.x<0)||(start.x>2000.f)||(start.y<0)||(start.y>2000.f)) { m_pLog->LogError("[CRASHWARNING] Unnaturally high value placed for sound detection"); return pH->EndFunction(true); // there is no sound occlusion in outdoor } if ((end.x<0)||(end.x>2000.f)||(end.y<0)||(end.y>2000.f)) { m_pLog->LogError("[CRASHWARNING] Unnaturally high value placed for sound detection"); return pH->EndFunction(true); // there is no sound occlusion in outdoor } GraphNode *pStart = pGraph->GetEnclosing(pVecOrigin.Get()); if (pStart->nBuildingID<0) return pH->EndFunction(true); // there is no sound occlusion in outdoor GraphNode *pEnd = pGraph->GetEnclosing(pVecDestination.Get()); if (pStart->nBuildingID!=pEnd->nBuildingID) return pH->EndFunction(false); // if in 2 different... more | |
|
Syntax: System.EnumAAFormats( m_Width, m_Height, m_BPP ) Enumerates the AA formats. | |
|
Syntax: System.EnumDisplayFormats() Enumerates display formats. | |
|
Syntax: System.Error(sText) Shows a message text with the error severity. | |
|
Syntax: System.ExecuteCommand(szCmd) Executes a command. | |
|
Syntax: System.GetConfigSpec() Gets the config specification. | |
|
CW: added for script based system analysis Syntax: System.GetCPUQuality() Gets the CPU quality. | |
|
Syntax: System.GetCurrAsyncTime() Gets the current asynchronous time. | |
|
Syntax: System.GetCurrTime() Gets the current time. | |
|
Syntax: System.GetCVar( sCVarName) Gets the value of a CVariable. | |
|
Syntax: System.GetEntities(center, radius) Gets all the entities contained in the specific area of the level. !return a all entities currently present in the level @return a table filled with all entities currently present in the level | |
|
Syntax: System.GetEntitiesByClass(EntityClass) Gets all the entities of the specified class. !return a all entities for a specified entity class @return a table filled with all entities of a specified entity class | |
|
Syntax: System.GetEntitiesInSphere( centre, radius ) Gets all the entities contained into the specified sphere. !return a all entities for a specified entity class @return a table filled with all entities of a specified entity class in a radius | |
|
Syntax: System.GetEntitiesInSphereByClass( centre, radius, EntityClass ) Gets all the entities contained into the specified sphere for the specific class name. | |
|
Syntax: System.GetEntity(entityId) Gets an entity from its ID. !Get an entity by id @param nID the entity id | |
|
Syntax: System.GetEntityByGUID( SmartScriptTable dataTable ) Retrieve entity table for the first entity withe the given EntityGUID | |
|
Syntax: System.GetEntityByName( sEntityName ) Retrieve entity table for the first entity with specified name. If multiple entities with same name exist, first one found is returned. | |
|
Syntax: System.GetEntityClass(entityId) Gets an entity class from its ID. | |
|
Syntax: System.GetEntityIdByName( sEntityName ) Retrieve entity Id for the first entity with specified name. If multiple entities with same name exist, first one found is returned. | |
|
Syntax: System.GetFrameID() Gets the frame identifier. | |
|
Syntax: System.GetFrameTime() Gets the frame time. | |
|
Syntax: System.GetGPUQuality() Gets the GPU quality. | |
|
Syntax: System.GetHDRDynamicMultiplier() Gets hte HDR dynamic multiplier. | |
|
Syntax: System.GetLocalOSTime() Gets the local operating system time. | |
![]() |
This is GetMemoryUsage, a member of class CScriptBindSystem. | |
|
Syntax: System.GetNearestEntityByClass( centre, radius, className ) Gets the nearest entity with the specified class. | |
|
Syntax: System.GetOutdoorAmbientColor() Gets the outdoor ambient color. | |
|
Syntax: System.GetPhysicalEntitiesInBox( centre, radius ) Gets all the entities contained into the specified area. !return all entities contained in a certain radius @param oVec center of the sphere @param fRadius length of the radius @return a table filled with all entities contained in the specified radius | |
|
Syntax: System.GetPhysicalEntitiesInBoxByClass( centre, radius, className ) Gets all the entities contained into the specified area for the specific class name. | |
|
Syntax: System.GetPostProcessFxParam( pszEffectParam, value ) Gets a post processing effect parameter value. | |
|
const char*, const char | |
|
Syntax: Vec3 System.GetSkyColor() Retrieve color of the sky (outdoor ambient color). | |
|
Syntax: System.SetSkyHighlight( params ) Retrieves Sky highlighing parameters. see SetSkyHighlight for parameters description. | |
|
Syntax: Vec3 System.GetSunColor() Retrieve color of the sun outdoors. | |
|
Syntax: System.GetSurfaceTypeIdByName( surfaceName ) Gets the surface type identifier by its name. | |
|
Syntax: System.GetSurfaceTypeNameById( surfaceId ) Gets the surface type name by its identifier. | |
|
Syntax: System.GetSystemMem() Gets the amount of the memory for the system. | |
|
Syntax: System.GetTerrainElevation( v3Pos ) Gets the terrain elevation of the specified position. | |
|
Syntax: System.GetUserName() Gets the username on this machine. | |
|
Syntax: System.GetVideoMem() Gets the amount of the video memory for the system. | |
|
Syntax: System.GetViewCameraAngles() Gets the view camera angles. | |
|
Syntax: System.GetViewCameraDir() Gets the view camera direction. | |
|
Syntax: System.GetViewCameraFov() Gets the view camera fov. | |
|
Syntax: System.GetViewCameraPos() Gets the view camera position. | |
|
Syntax: System.SetWind() Gets the wind direction. | |
|
Syntax: System.IsDevModeEnable() Checks if game is running in dev mode (cheat mode) to check if we are allowed to enable certain scripts function facilities (god mode, fly mode etc.). | |
|
Syntax: System.IsEditing() Checks if the system is in pure editor mode, i.e. not editor game mode. | |
|
Syntax: System.IsEditor() Checks if the system is the editor. | |
|
Syntax: System.IsHDRSupported() Checks if the HDR is supported. | |
|
Syntax: System.IsMultiplayer() Checks if the game is multiplayer. | |
|
Syntax: System.IsPointIndoors( vPos ) Checks if a point is indoors. | |
|
Syntax: System.IsPointVisible( point ) Checks if the specified point is visible. | |
|
Syntax: System.IsPS20Supported() Checks if the PS20 is supported. | |
|
Syntax: System.IsValidMapPos( v ) Checks if the position is a valid map position. int CScriptBindSystem::ActivateMainLight(IFunctionHandler *pH) { SCRIPT_CHECK_PARAMETERS(2); bool bActive; CScriptVector oVec(m_pSS); if(pH->GetParam(1,*oVec)) { pH->GetParam(2, bActive); m_p3DEngine->GetBuildingManager()->ActivateMainLight(oVec.Get(), bActive); } return pH->EndFunction(); } int CScriptBindSystem::SetSkyBox(IFunctionHandler *pH) { SCRIPT_CHECK_PARAMETERS(3); const char *pszShaderName; float fBlendTime; bool bUseWorldBrAndColor; pH->GetParam(1, pszShaderName); pH->GetParam(2, fBlendTime); pH->GetParam(3, bUseWorldBrAndColor); m_p3DEngine->SetSkyBox(pszShaderName);// not supported now: fBlendTime, bUseWorldBrAndColor); return pH->EndFunction(); | |
|
Syntax: System.LoadFont(pszName) Loads a font. ! Loads a font and makes it available for future-selection @param name of font-xml-file (no suffix) | |
|
Syntax: System.LoadLocalizationXml( filename ) Loads Excel exported xml file with text and dialog localization data. | |
|
Syntax: System.Log(sText) Logs a message. ! Write a message into the log file and the console @param String to write @see stuff | |
|
Syntax: System.LogAlways(sText) Logs important data that must be printed regardless verbosity. ! log even with log verbosity 0 - without @param String to write | |
|
Syntax: System.LogToConsole(sText) Logs a message to the console. ! Write a string to the console @param String to write @see CScriptBindSystem::Log | |
|
Syntax: System.PrepareEntityFromPool(entityId) Prepares the given bookmarked entity from the pool, bringing it into existence. !Entity pool management @param nID the entity id | |
|
Syntax: System.ProjectToScreen( vec ) Projects to the screen (not guaranteed to work if used outside Renderer). 9/16/2010 evgeny] ProjectToScreen is not guaranteed to work if used outside Renderer | |
|
Syntax: System.Quit() Quits the program. | |
|
Syntax: System.QuitInNSeconds( fInNSeconds ) Quits the application in the specified number of seconds. | |
|
Syntax: System.RayTraceCheck(src, dst, skipId1, skipId2) | |
|
Syntax: System.RayWorldIntersection(vPos, vDir, nMaxHits, iEntTypes) Shots rays into the world. | |
|
Syntax: System.RemoveEntity( entityId ) Removes the specified entity. | |
|
Syntax: System.ResetPoolEntity(entityId) Resets the entity's bookmarked, which frees memory. | |
|
Syntax: System.ReturnEntityToPool(entityId) Returns the bookmarked entity to the pool, destroying it. | |
|
Syntax: System.SaveConfiguration() Saves the configuration. | |
|
Syntax: System.ScanDirectory( pszFolderName, nScanMode ) Scans a directory. | |
|
Syntax: System.ScreenToTexture() | |
|
Syntax: System.SetBudget(sysMemLimitInMB, videoMemLimitInMB, frameTimeLimitInMS, soundChannelsPlayingLimit, soundMemLimitInMB, numDrawCallsLimit ) Sets system budget. | |
|
Syntax: System.SetConsoleImage( pszName, bRemoveCurrent ) Sets the console image. | |
|
Syntax: System.SetCVar( sCVarName, value ) Sets the value of a CVariable. | |
|
Syntax: System.SetGammaDelta( fDelta ) Sets the gamma/delta value. | |
|
Syntax: System.SetHDRDynamicMultiplier( fMul ) Sets the HDR dynamic multiplier. | |
|
Syntax: System.GetOutdoorAmbientColor( v3Color ) v3Color - Outdoor ambient color value. Sets the outdoor ambient color. | |
|
Syntax: System.SetPostProcessFxParam( pszEffectParam, value ) Sets a post processing effect parameter value. | |
|
Syntax: System.SetScissor( x, y, w, h ) Sets scissor info. set scissoring screen area | |
|
Syntax: System.SetScreenFx( pszEffectParam, value ) Sets a post processing effect parameter value. | |
|
Syntax: System.SetSkyColor( vColor ) Set color of the sky (outdoors ambient color). | |
|
Syntax: System.SetSkyHighlight( params ) Set Sky highlighing parameters. | |
|
Syntax: System.SetSunColor( vColor ) Set color of the sun, only relevant outdoors. | |
|
Syntax: System.SetViewCameraFov( fov ) Sets the view camera fov. | |
|
Syntax: System.SetVolumetricFogModifiers( gobalDensityModifier, atmosphereHeightModifier ) Sets the volumetric fog modifiers. | |
|
Syntax: System.SetWaterVolumeOffset() SetWaterLevel is not supported by 3dengine for now. | |
|
Syntax: System.SetWind( vWind ) Sets the wind direction. | |
|
Syntax: System.ShowConsole(nParam) Shows/hides the console. | |
|
Syntax: System.ShowDebugger() Shows the debugger. | |
|
Syntax: System.SpawnEntity( params ) Spawns an entity. | |
|
Syntax: System.ViewDistanceSet() Gets the view distance. | |
|
Syntax: System.ViewDistanceSet( fViewDist ) Sets the view distance. | |
|
Syntax: System.Warning(sText) Shows a message text with the warning severity. |
|
Copyright (c) 2012. All rights reserved.
|