72. Use the same actions in PCA Script
PCA Script can call the same shared actions. Keep each dictionary expression on a single physical line in this example. The editor’s visual line wrapping is fine; inserting newlines inside the expression changes how this parser reads it.
language 1.0
function run()
let effect = "hand_orb"
AttachParticleEffect({entityId:effect,targetId:"player",targetPoint:"right_hand_grip"})
ChangeObjectProperty({entityId:effect,property:"particle.enabled",value:true})
endFor simple property changes, PCA Script’s readable property syntax is useful:
language 1.0
function run()
set objects.hand_orb.particle.enabled to false
set objects.heat_plume.particle.heatDistortion to 0
end| Language / tool | Use the shared effect contract |
|---|---|
| GDScript | await AttachParticleEffect(options) and the typed action helpers. |
| PCA Script | Shared action calls or readable set objects.<id>.<path> to value statements. |
| Lua / BASIC | Their existing shared action calls use the same IDs, option names and value types. |
| Visual scripts / action lists | Choose the catalog action and edit its parameter fields. |
The language changes how you write the call; it does not remove rendering limits or make every particle field rebuild live. Keep the authoring/runtime distinctions from lesson 37.
