Skip to reading
PCA Script Programming

attach_particle_effect()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Attach Particle Effect | Action ID: AttachParticleEffect

Attach an existing particle-effect entity to a target point with an optional offset.

Source table from attach_particle_effect(), page 167
Option key / fieldMeaning and accepted inputDefault
Particle Effect entityIdChoose a scene entity ID.Blank
Target Object targetIdChoose a scene entity ID.Blank
Target Attach Point targetPointName of the attach point on the target entity.Blank
Attachment Offset offsetAttachment offset as [X, Y, Z].[0, 0, 0]

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
let options = {}
options["entityId"] = "archive_door"
options["targetId"] = "archive_door"
options["targetPoint"] = ""
attach_particle_effect(options)

In use. Attach smoke to a pipe's smoke_outlet point. Select the scene's particle entity, not just an imported texture used by that emitter. Keep the offset in the intended attachment space.

Page 167 of 357Permalink
Go to page