camera_shake_trigger
Generate a trigger actor that plays a camera shake when the player overlaps its box during Play In Editor. Uses Python for setup and C++ for execution, ensuring reliable triggering.
Instructions
Spawn a C++ ShakeTriggerActor: plays camera shake when the player overlaps its trigger box during PIE. Python builds, C++ executes -- the reliable pattern.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"shake_class": "<shake_class>"
},
"name": "camera_shake_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ShakeTrigger | |
| location | No | ||
| box_extent | No | Trigger box half-extents | |
| shake_class | Yes | Content path to CameraShake BP (e.g. /Game/CS_Earthquake) | |
| shake_scale | No | Shake intensity multiplier |