|
bool | RandomiseExt (notnull WorldEditorAPI worldEditorAPI, notnull IEntitySource entitySource, RandomGenerator randomGenerator) |
| Randomise the provided entitySource with its Prefab Library values, assuming it is on the ground already
(WorldEditorAPI.CreateEntity vs .CreateEntityExt)
Does not use BeginEntityAction or any other kind of Begin..End action
Place By Bounding Box is not supported (yet?)
|
|
◆ SCR_RandomisationEditorData()
void SCR_RandomisationEditorData.SCR_RandomisationEditorData |
( |
| ) |
|
|
protected |
◆ CreateFromEntitySource()
Get randomisation information from the provided entitySource (WorldEditorAPI.CreateEntity vs .CreateEntityExt)
- Parameters
-
[in] | entitySource | the entity source from which to grab randomisation data |
- Returns
- randomisation data if correctly grabbed, null otherwise
◆ RandomiseExt()
bool SCR_RandomisationEditorData.RandomiseExt |
( |
notnull WorldEditorAPI | worldEditorAPI, |
|
|
notnull IEntitySource | entitySource, |
|
|
RandomGenerator | randomGenerator ) |
Randomise the provided entitySource with its Prefab Library values, assuming it is on the ground already
(WorldEditorAPI.CreateEntity vs .CreateEntityExt)
Does not use BeginEntityAction or any other kind of Begin..End action
Place By Bounding Box is not supported (yet?)
- Parameters
-
[in] | entitySource | |
[in] | randomGenerator | |
- Returns
- true on success, false on failure
◆ m_bAlignToNormal
bool SCR_RandomisationEditorData.m_bAlignToNormal |
◆ m_bPlaceByBoundingBox
bool SCR_RandomisationEditorData.m_bPlaceByBoundingBox |
◆ m_bRandomYaw
bool SCR_RandomisationEditorData.m_bRandomYaw |
◆ m_fRandomPitchAngle
float SCR_RandomisationEditorData.m_fRandomPitchAngle |
◆ m_fRandomRollAngle
float SCR_RandomisationEditorData.m_fRandomRollAngle |
◆ m_vRandomScale
vector SCR_RandomisationEditorData.m_vRandomScale |
the UI allows for negatives, and WorldEditorAPI too - only entity.SetScale bothers blocking negative scales
◆ m_vRandomVertOffset
vector SCR_RandomisationEditorData.m_vRandomVertOffset |
The documentation for this interface was generated from the following file:
- Game/Generators/Common/SCR_RandomisationEditorData.c