![]() |
|
Public Member Functions | |
| SCR_EPlacementType | GetPlacementType () |
| float | GetMaxPlacementDistance () |
| bool | GetForwardAwayFromPlayer () |
| bool | GetAttachPlacedItemToTheSurfaceEntity () |
| bool | GetCanBeForcedPlaced () |
| float | GetMaxAllowedTilt () |
| bool | OverrideIsSurfaceValid (notnull SCR_ItemPlacementComponent caller, out ENotification cantPlaceReason, IEntity surfaceEnt, vector worldPosition, vector surfaceNorm, int nodeIndex, int colliderIndex, SurfaceProperties surfaceProps, string surfaceMaterial, string colliderName) |
| Method used to execute custom validation of the surface entity. | |
| bool | OverrideSpaceValidation (notnull SCR_ItemPlacementComponent caller, inout vector transform[4], out ENotification cantPlaceReason) |
| Method used to execute custom space validation. | |
| void | OverridePreviewTransform (notnull SCR_ItemPlacementComponent caller, inout vector transform[4]) |
| Method used to override the position and rotation of the preview. | |
| bool | OverrideStartPlaceAction (notnull SCR_ItemPlacementComponent caller, out bool skipItemUsage=false) |
| Method executed when player confirms item placement by pressing SCR_ItemPlacementComponent.ACTION_NAME_PLACEMENT. | |
| bool | OverrideOnPlacingEnded (notnull SCR_ItemPlacementComponent caller) |
| Method called after item placement was already requested, but depending on the client it may have not yet finished. | |
| void | OverrideAfterItemPlaced (notnull SCR_ItemPlacementComponent caller, notnull IEntity item, bool success, bool equipNext) |
| Method called after item was succesfully removed from clients inventory. | |
| bool | OverrideAutoEquipMechanism (out ScriptedInventoryOperationCallback callBackHolder, notnull SCR_ItemPlacementComponent caller, IEntity placedItem, bool autoEquipNext) |
| Override this in order to add a custom callback that is going to be triggered after item is removed from this client inventory. | |
| VObject | GetPreviewVobject () |
| bool | CanAttachToDynamicObject () |
| Returns true if it should be possible to attach this object to dynamic object like f.e. vehicle. | |
| EPhysicsLayerDefs | GetIgnoredPhysicsLayers () |
| Returns physics layer mask that can be used to determin which layers should be ignored. | |
| int | GetIgnoredComponents (notnull out array< TypeName > outIgnoredComponents) |
| Removes unwanted types from ignored components list. | |
| override void | OnPostInit (IEntity owner) |
| SCR_ECharacterDistanceMeasurementMethod | GetDistanceMeasurementMethod () |
| Returns preferred Measurement method. | |
Static Public Member Functions | |
| static float | GetDistanceFromCharacter (notnull ChimeraCharacter char, vector destination, SCR_ECharacterDistanceMeasurementMethod method=SCR_ECharacterDistanceMeasurementMethod.FROM_EYES) |
Protected Member Functions | |
| override void | EOnInit (IEntity owner) |
| override bool | RplSave (ScriptBitWriter writer) |
| override bool | RplLoad (ScriptBitReader reader) |
| bool SCR_PlaceableItemComponent.CanAttachToDynamicObject | ( | ) |
Returns true if it should be possible to attach this object to dynamic object like f.e. vehicle.
|
protected |
| bool SCR_PlaceableItemComponent.GetAttachPlacedItemToTheSurfaceEntity | ( | ) |
| bool SCR_PlaceableItemComponent.GetCanBeForcedPlaced | ( | ) |
|
static |
| [in] | char | |
| [in] | destination | |
| [in] | method |
| SCR_ECharacterDistanceMeasurementMethod SCR_PlaceableItemComponent.GetDistanceMeasurementMethod | ( | ) |
Returns preferred Measurement method.
| bool SCR_PlaceableItemComponent.GetForwardAwayFromPlayer | ( | ) |
Implemented in SCR_DeployablePlaceableItemComponent.
| int SCR_PlaceableItemComponent.GetIgnoredComponents | ( | notnull out array< TypeName > | outIgnoredComponents | ) |
Removes unwanted types from ignored components list.
| EPhysicsLayerDefs SCR_PlaceableItemComponent.GetIgnoredPhysicsLayers | ( | ) |
Returns physics layer mask that can be used to determin which layers should be ignored.
| float SCR_PlaceableItemComponent.GetMaxAllowedTilt | ( | ) |
Implemented in SCR_DeployablePlaceableItemComponent.
| float SCR_PlaceableItemComponent.GetMaxPlacementDistance | ( | ) |
| SCR_EPlacementType SCR_PlaceableItemComponent.GetPlacementType | ( | ) |
| VObject SCR_PlaceableItemComponent.GetPreviewVobject | ( | ) |
| override void SCR_PlaceableItemComponent.OnPostInit | ( | IEntity | owner | ) |
| void SCR_PlaceableItemComponent.OverrideAfterItemPlaced | ( | notnull SCR_ItemPlacementComponent | caller, |
| notnull IEntity | item, | ||
| bool | success, | ||
| bool | equipNext ) |
Method called after item was succesfully removed from clients inventory.
| [in] | caller | |
| [in] | item | |
| [in] | succes | |
| [in] | equipNext |
Implemented in SCR_DeployablePlaceableItemComponent.
| bool SCR_PlaceableItemComponent.OverrideAutoEquipMechanism | ( | out ScriptedInventoryOperationCallback | callBackHolder, |
| notnull SCR_ItemPlacementComponent | caller, | ||
| IEntity | placedItem, | ||
| bool | autoEquipNext ) |
Override this in order to add a custom callback that is going to be triggered after item is removed from this client inventory.
| [out] | callBackHolder | |
| [in] | caller | component which called this method |
| [in] | placedItem | |
| [in] | autoEquipNext | bool value representing player settings for automatic equipping of next place |
Implemented in SCR_DeployablePlaceableItemComponent.
| bool SCR_PlaceableItemComponent.OverrideIsSurfaceValid | ( | notnull SCR_ItemPlacementComponent | caller, |
| out ENotification | cantPlaceReason, | ||
| IEntity | surfaceEnt, | ||
| vector | worldPosition, | ||
| vector | surfaceNorm, | ||
| int | nodeIndex, | ||
| int | colliderIndex, | ||
| SurfaceProperties | surfaceProps, | ||
| string | surfaceMaterial, | ||
| string | colliderName ) |
Method used to execute custom validation of the surface entity.
| [in] | caller | |
| [out] | cantPlaceReason |
Implemented in SCR_DeployablePlaceableItemComponent.
| bool SCR_PlaceableItemComponent.OverrideOnPlacingEnded | ( | notnull SCR_ItemPlacementComponent | caller | ) |
Method called after item placement was already requested, but depending on the client it may have not yet finished.
| [in] | caller |
Implemented in SCR_DeployablePlaceableItemComponent.
| void SCR_PlaceableItemComponent.OverridePreviewTransform | ( | notnull SCR_ItemPlacementComponent | caller, |
| inout vector | transform[4] ) |
Method used to override the position and rotation of the preview.
| [in] | caller | |
| [in,out] | transform | pointer containing rotation and position at which item preivew will be shown, and from which the space validation will be done |
Implemented in SCR_DeployablePlaceableItemComponent.
| bool SCR_PlaceableItemComponent.OverrideSpaceValidation | ( | notnull SCR_ItemPlacementComponent | caller, |
| inout vector | transform[4], | ||
| out ENotification | cantPlaceReason ) |
Method used to execute custom space validation.
| [in] | caller | |
| [in,out] | transform | pointer containing rotation and position at which item will be placed. This position has already applied offset of 1% of its up vector (1cm) |
| [out] | cantPlaceReason |
Implemented in SCR_DeployablePlaceableItemComponent.
| bool SCR_PlaceableItemComponent.OverrideStartPlaceAction | ( | notnull SCR_ItemPlacementComponent | caller, |
| out bool | skipItemUsage = false ) |
Method executed when player confirms item placement by pressing SCR_ItemPlacementComponent.ACTION_NAME_PLACEMENT.
| [in] | caller | |
| [out] | skipItemUsage | true if game should not try to player item usage animation and immidietly proceed to SCR_ItemPlacementComponent.OnPlacingEnded |
Implemented in SCR_DeployablePlaceableItemComponent.
|
protected |
|
protected |