EnginePreloadWorldArea: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
mNo edit summary  | 
				Megadreams (talk | contribs)   (Fixed return type (nil - function returns nothing))  | 
				||
| Line 5: | Line 5: | ||
==Syntax==    | ==Syntax==    | ||
<syntaxhighlight lang="lua">  | <syntaxhighlight lang="lua">  | ||
nil enginePreloadWorldArea(float x, float y, float z [, string loadingOption = "all" ] )  | |||
</syntaxhighlight>    | </syntaxhighlight>    | ||
| Line 21: | Line 21: | ||
===Returns===  | ===Returns===  | ||
Nothing  | |||
==Example==    | ==Example==    | ||
Latest revision as of 00:43, 19 August 2024
Syntax
nil enginePreloadWorldArea(float x, float y, float z [, string loadingOption = "all" ] )
Required Arguments
- x: Position in the X axis.
 - y: Position in the Y axis
 - z: Position in the z axis.
 
Optional Arguments
NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.
- loadingOption: Argument of what exactly is to be loaded. Possible values:
 
- all - Loads models and collisions in a designated area.
 - models - Only loads models in the designated area.
 - collisions - Loads only collisions in the designated area.
 
Returns
Nothing
Example
enginePreloadWorldArea(1000, 500, 0) local z = getGroundPosition(1000, 500, 100) setElementPosition(localPlayer, 1000, 500, z)
enginePreloadWorldArea(1000, 500, 0, "collisions")   
local z = getGroundPosition(1000, 500, 100)   
iprint("The ground position is: "..z)
See Also
- engineAddImage
 - engineApplyShaderToWorldTexture
 - engineFreeModel
 - engineGetModelFlags
 - engineGetModelIDFromName
 - engineGetModelLODDistance
 - engineGetModelNameFromID
 - engineGetModelPhysicalPropertiesGroup
 - engineGetModelTextureNames
 - engineGetModelTextures
 - engineGetModelTXDID
 - engineGetModelVisibleTime
 - engineGetObjectGroupPhysicalProperty
 - engineGetSurfaceProperties
 - engineGetVisibleTextureNames
 - engineImageGetFilesCount
 - engineImageGetFiles
 - engineImageGetFile
 - engineImageLinkDFF
 - engineImageLinkTXD
 - engineImportTXD
 - engineLoadCOL
 - engineLoadDFF
 - engineLoadIMG
 - engineLoadIFP
 - engineLoadTXD
 - engineRemoveImage
 - engineRemoveShaderFromWorldTexture
 - engineReplaceAnimation
 - engineReplaceCOL
 - engineReplaceModel
 - engineRequestModel
 - engineResetModelFlags
 - engineResetModelLODDistance
 - engineResetSurfaceProperties
 - engineRestoreAnimation
 - engineRestoreCOL
 - engineRestoreDFFImage
 - engineRestoreModel
 - engineRestoreModelPhysicalPropertiesGroup
 - engineRestoreObjectGroupPhysicalProperties
 - engineRestoreTXDImage
 - engineRestreamWorld
 - engineSetAsynchronousLoading
 - engineSetModelFlag
 - engineSetModelFlags
 - engineSetModelLODDistance
 - engineSetModelPhysicalPropertiesGroup
 - engineSetModelVisibleTime
 - engineSetObjectGroupPhysicalProperty
 - engineSetSurfaceProperties
 - engineStreamingFreeUpMemory
 - engineStreamingGetUsedMemory