Skip to content
CptArthur edited this page Jun 27, 2023 · 9 revisions

Events are like triggers, but they don't require a behavior / remote control. Instead they happen at the world level

Here is an example of how an Event Profile definition is setup:

<EntityComponent xsi:type="MyObjectBuilder_InventoryComponentDefinition">
  <Id>
	  <TypeId>Inventory</TypeId>
	  <SubtypeId>TAG-Event-Example</SubtypeId>
  </Id>
  <Description>

	[MES Event]
	[UseEvent:false]
	[UniqueEvent:true]
	[Tags:BattleforAHEHQ]

	[ConditionIds:TAG-EventCondition-Example]	

	[ActionExecution:Sequential]
	[TimeUntilNextActionMs:6000]

	[ActionIds:TAG-EventAction-Example]
	[ActionIds:TAG-EventAction-Example2]

  </Description>
</EntityComponent>
Tag:                                UseEvent
Tag Format: [UseEvent:Value]
Description: nan
Allowed Values: true
false
Multiple Tag Allowed: no
Tag:                                UniqueEvent
Tag Format: [UniqueEvent:Value]
Description: nan
Allowed Values: true
false
Multiple Tag Allowed: no
Tag:                                Tags
Tag Format: [Tags:Value]
Description: nan
Allowed Values: Any name string excluding :, [, ]
Multiple Tag Allowed: yes
Tag:                                MinCooldownMs
Tag Format: [MinCooldownMs:Value]
Description: nan
Allowed Values: Any interger equal or greater than 0
Multiple Tag Allowed: no
Tag:                                MaxCooldownMs
Tag Format: [MaxCooldownMs:Value]
Description: nan
Allowed Values: Any interger equal or greater than 0
Multiple Tag Allowed: no
Tag:                                ConditionIds
Tag Format: [ConditionIds:Value]
Description: nan
Allowed Values: Any Condition Profile SubtypeId
Multiple Tag Allowed: yes
Tag:                                UseAnyPassingCondition
Tag Format: [UseAnyPassingCondition:Value]
Description: nan
Allowed Values: true
false
Multiple Tag Allowed: no
Tag:                                ActionIds
Tag Format: [ActionIds:Value]
Description: nan
Allowed Values: Any Action Profile SubtypeId
Multiple Tag Allowed: yes
Tag:                                ActionExecution
Tag Format: [ActionExecution:Value]
Description: nan
Allowed Values: All
Sequential
Random
Multiple Tag Allowed: no
Tag:                                TimeUntilNextActionMs
Tag Format: [TimeUntilNextActionMs:Value]
Description: nan
Allowed Values: Any interger equal or greater than 0
Multiple Tag Allowed: no
Clone this wiki locally