Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PrefabSpawnPoint.c
Go to the documentation of this file.
1[EntityEditorProps(style: "cylinder", category: "GameScripted/GameMode/PrefabsSpawn", description: "Prefab Spawn Point Entity", sizeMin: "-0.25 0 -0.25", color: "64 0 64 255")]
2class SCR_PrefabSpawnPointClass : GenericEntityClass
3{
4}
5
8{
9 [Attribute("0", UIWidgets.EditComboBox, "Defines which spawner uses this Spawn Point", "", ParamEnumArray.FromEnum(EPrefabSpawnType) )]
10 protected EPrefabSpawnType m_eType;
11
12 [Attribute("0", UIWidgets.CheckBox, "Should be SP snaped in script to ground? -- GetWorld().GetSurfaceY()", "", ParamEnumArray.FromEnum(EPrefabSpawnType) )]
13 protected bool m_bSnapToGroud; // grouNd
14
15 //------------------------------------------------------------------------------------------------
18 {
19 return m_eType;
20 }
21
22 //------------------------------------------------------------------------------------------------
23 [Obsolete("Please use ShouldSnapToGround()")]
25 {
26 return ShouldSnapToGround();
27 }
28
29 //------------------------------------------------------------------------------------------------
32 {
33 return m_bSnapToGroud;
34 }
35
36 //------------------------------------------------------------------------------------------------
37 // constructor
41 {
42 #ifdef WORKBENCH
43 SetFlags(EntityFlags.TRACEABLE, false);
44 #else
45 SetFlags(EntityFlags.NO_LINK, false);
46 #endif
47 SCR_PrefabsSpawnerManager.RegisterPrefabSpawnPoint(this);
48 }
49
50 //------------------------------------------------------------------------------------------------
51 // destructor
53 {
54 SCR_PrefabsSpawnerManager.UnregisterPrefabSpawnPoint(this);
55 }
56}
override EGadgetType GetType()
SCR_ECampaignBaseType m_eType
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
bool ShouldSnapToGround()
void ~SCR_PrefabSpawnPoint()
bool ShouldSnapToGroud()
void SCR_PrefabSpawnPoint(IEntitySource src, IEntity parent)
bool m_bSnapToGroud
void SCR_PrefabsSpawnerManager(IEntitySource src, IEntity parent)
SCR_FieldOfViewSettings Attribute
EntityFlags
Various entity flags.
Definition EntityFlags.c:14