setTitleEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
mNo edit summary
 
(55 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
|game1= ofpe
|version1= 1.00


|1.00|= Game version
|game2= arma1
____________________________________________________________________________________________
|version2= 1.00


| Defines the title effect via [Type, Effect, Text] where
|game3= arma2
|version3= 1.00


'Type' can be
|game4= arma2oa
*"NONE",
|version4= 1.50
*"OBJECT",
**'Text' defines the shown object , a subclass of CfgTitles.


*"RES"
|game5= tkoh
**'Text' defines a resource class, a subclass of RscTitles.
|version5= 1.00
*"TEXT"
**The 'Text' is shown as text itself. 'Effect' defines a subtype: "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT" or "WHITE IN".  |= Description
____________________________________________________________________________________________


| trigger '''setTitleEffect''' [type, effect, text] |= Syntax
|game6= arma3
|version6= 0.50


|p1= trigger: [[Object]] |= Parameter 1
|gr1= Triggers


|p2= [type, effect, text]: [[Array]] of strings. See above  |= Parameter 2
|gr2= Waypoints


| [[Nothing]] |= Return value
|descr= Defines the title effect to show on activation via [Type, Effect, Text] where
|s2= waypoint '''setTitleEffect''' [type, effect, text] |= Syntax


|p21= waypoint: [[Array]] - format [[Waypoint]] |= Parameter 1
'Type'


|p22= [type, effect, text]: [[Array]] of strings. See above  |= Parameter 2
The title effect does not disappear on deactivation, this should be done manually if required.


|r2= [[Nothing]] |= Return value
|s1= triggerOrWaypoint [[setTitleEffect]] [type, effect, text]
____________________________________________________________________________________________
 
|x1= <pre>_trigger setTitleEffect ["TEXT", "PLAIN DOWN", "Hello world."]</pre> |= Example 1
____________________________________________________________________________________________


| |= See also
|p1= triggerOrWaypoint: [[Object]] or [[Array]] format [[Waypoint]]


}}
|p2= type: [[String]] Enum - defines [[Title Effect Type]] when not NONE, can be one of:
* "NONE"
* "OBJECT" - ''text'' defines the shown object , a subclass of {{hl|CfgTitles}} (see [[cutObj]])
* "RES" - ''text'' defines a resource class, a subclass of RscTitles (see [[cutRsc]])
* "TEXT" - ''text'' defines text string to show (see [[cutText]])
 
|p3= effect: [[String]]
 
|p4= text: [[String]]


<h3 style="display:none">Notes</h3>
|r1= [[Nothing]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>_trigger setTitleEffect ["TEXT", "PLAIN DOWN", "Hello world."];</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[createTrigger]] [[setSoundEffect]] [[setMusicEffect]]
[[Category:Scripting Commands|SETTITLEEFFECT]]
}}
[[Category:Scripting Commands OFP Elite |SETTITLEEFFECT]]
[[Category:Scripting Commands ArmA|SETTITLEEFFECT]]
[[Category:Command_Group:_Interaction|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands VBS2|{{uc:{{PAGENAME}}}}]]

Latest revision as of 22:08, 26 September 2024

Hover & click on the images for description

Description

Description:
Defines the title effect to show on activation via [Type, Effect, Text] where 'Type' The title effect does not disappear on deactivation, this should be done manually if required.
Groups:
TriggersWaypoints

Syntax

Syntax:
triggerOrWaypoint setTitleEffect [type, effect, text]
Parameters:
triggerOrWaypoint: Object or Array format Waypoint
type: String Enum - defines Title Effect Type when not NONE, can be one of:
  • "NONE"
  • "OBJECT" - text defines the shown object , a subclass of CfgTitles (see cutObj)
  • "RES" - text defines a resource class, a subclass of RscTitles (see cutRsc)
  • "TEXT" - text defines text string to show (see cutText)
effect: String
text: String
Return Value:
Nothing

Examples

Example 1:
_trigger setTitleEffect ["TEXT", "PLAIN DOWN", "Hello world."];

Additional Information

See also:
createTrigger setSoundEffect setMusicEffect

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