Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ParticleEditorEffect.c
Go to the documentation of this file.
1[BaseContainerProps(), SCR_BaseContainerCustomTitleResourceName("m_Particle", true, "PFX: \"%1\"")]
8{
9 [Attribute(params: "ptc", desc: "Particle effect file")]
10 private ResourceName m_Particle;
11
12 [Attribute("0", UIWidgets.ComboBox, "", enums: ParamEnumArray.FromEnum(EEditorEffectTarget))]
13 private EEditorEffectTarget m_Target;
14
15 override bool EOnActivate(SCR_BaseEditorComponent editorComponent, vector position = vector.Zero, set<SCR_EditableEntityComponent> entities = null)
16 {
17 switch (m_Target)
18 {
19 case EEditorEffectTarget.CURSOR:
20 {
21 Print("ToDo: CURSOR particle effect");
22 break;
23 }
24 case EEditorEffectTarget.ROOT_ENTITY:
25 {
26 if (!entities || entities.Count() == 0) return false;
27 vector pos;
28 if (entities[0].GetPos(pos))
29 {
31 spawnParams.Transform[3] = pos;
32 spawnParams.UseFrameEvent = true;
33 ParticleEffectEntity.SpawnParticleEffect(m_Particle, spawnParams);
34 }
35 break;
36 }
37 case EEditorEffectTarget.ALL_ENTITIES:
38 {
39 if (!entities || entities.Count() == 0) return false;
40 vector pos;
41 foreach (SCR_EditableEntityComponent entity: entities)
42 {
43 if (entity.GetPos(pos))
44 {
46 spawnParams.Transform[3] = pos;
47 spawnParams.UseFrameEvent = true;
48 ParticleEffectEntity.SpawnParticleEffect(m_Particle, spawnParams);
49 }
50 }
51 break;
52 }
53 }
54 return true;
55 }
56};
57
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_CampaignMilitaryBaseComponent SCR_MilitaryBaseComponent SCR_BaseContainerCustomTitleResourceName("m_sBaseName", true)
vector position
override bool GetPos(out vector pos)
void ParticleEffectEntity(IEntitySource src, IEntity parent)
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
SCR_FieldOfViewSettings Attribute