preloadTitleObj: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
(doesnt work with mission config)
(9 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma |= Game name
| arma |Game name=


|1.00|= Game version
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Object title -  Preload data the object can be defined in the [[Description.ext]] file. |DESCRIPTION=
| Preloads data for the given resource object. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


|'''preloadTitleObj''' [name, type] |SYNTAX=
|'''preloadTitleObj''' [name, type, speed, showInMap] |SYNTAX=


|p1= [name, type]: [[Array]] |PARAMETER1=
|p1= [name, type, speed, showInMap]: [[Array]] |PARAMETER1=
|p2= name: [[String]] defined in [[Description.ext]] for the mission |PARAMETER2=
|p2= name: [[String]] - defined in <tt>[[configFile]] >> "CfgTitles" >> name</tt> |PARAMETER2=
|p3= type: [[String]] "PLAIN" e.g. |PARAMETER3=
|p3= type: [[String]] - "PLAIN" e.g. |PARAMETER3=
| [[Boolean]] |RETURNVALUE=
|p4= speed (Optional): [[Number]] - Default: -1|PARAMETER4=
 
|p5= showInMap (Optional): [[Boolean]] - Default: [[true]] |PARAMETER5=
|s2= '''preloadTitleObj''' [name, type, speed, showInMap] |SYNTAX=
|[[Boolean]] |RETURNVALUE=
|p21= [name, type, speed, showInMap]: [[Array]] |PARAMETER1=
|p22= name: [[String]] defined in [[Description.ext]] for the mission |PARAMETER2=
|p23= type: [[String]] "PLAIN" e.g. |PARAMETER3=
|p24= speed (optional): [[Number]] - IGNORED |PARAMETER4=
|p25= showInMap: [[Boolean]]
|r2= [[Boolean]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_ok=preloadTitleObj ["BISLogo","plain"]</pre> |EXAMPLE1=
|x1= <code>_ok = [[preloadTitleObj]] ["BISLogo", "PLAIN"]</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |SEEALSO=
| [[cutObj]] |SEEALSO=


}}
}}

Revision as of 23:13, 3 September 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Preloads data for the given resource object.
Groups:
Uncategorised

Syntax

Syntax:
preloadTitleObj [name, type, speed, showInMap]
Parameters:
[name, type, speed, showInMap]: Array
name: String - defined in configFile >> "CfgTitles" >> name
type: String - "PLAIN" e.g.
speed (Optional): Number - Default: -1
showInMap (Optional): Boolean - Default: true
Return Value:
Boolean

Examples

Example 1:
_ok = preloadTitleObj ["BISLogo", "PLAIN"]

Additional Information

See also:
cutObj

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

Notes

Bottom Section