preloadObject: Difference between revisions
Jump to navigation
Jump to search
m (VBS2 scripting category removal) |
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
||
Line 43: | Line 43: | ||
[[Category:Scripting Commands ArmA|PRELOADOBJECT]] | [[Category:Scripting Commands ArmA|PRELOADOBJECT]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] |
Revision as of 11:23, 2 November 2011
Description
- Description:
- Preload all textures, materials and proxies needed to render given object. Object can be determined either by config class name (CfgVehicles), or by Unit. Returns true once all data is loaded and ready.
- Groups:
- Uncategorised
Syntax
- Syntax:
- Boolean = distance preloadObject object
- Parameters:
- distance: Number
- object: Object or String
- Return Value:
- Boolean
Examples
- Example 1:
spawn {waitUntil {10 preloadObject "SoldierW"}}
- Example 2:
spawn {waitUntil {10 preloadObject leader player}}
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note