natives.haveAnimsLoaded: Difference between revisions

no edit summary
(Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.haveAnimsLoaded |parameters = string animDict |parameter1 = string animDict The animation dictionary name (e.g. "cop") |usage = Checks if the specified animation dictionary has been loaded into memory. |notes = - Must be called before playing an animation to ensure the dictionary is available - Often used together with natives.requestAnims to load missing dictionaries |return1 = bool True if...")
 
No edit summary
 
Line 12: Line 12:
|return1 = bool True if the animation dictionary is loaded, false otherwise
|return1 = bool True if the animation dictionary is loaded, false otherwise
|returnFail1 = bool False if the dictionary is not loaded
|returnFail1 = bool False if the dictionary is not loaded
|exampleJS = if (natives.haveAnimsLoaded("cop")) {
|exampleJS = natives.haveAnimsLoaded("cop");
        console.log("Animation dictionary 'cop' not loaded yet");
    }
}}
}}
53

edits