Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Set ParticleAttachmentGroup Target
#1
Hi there, 
I want to set an ObiParticleAttatchment.target, via code. 

I have the index of the obiRope.blueprint.groups[i]... but from there, I am not clear on how how to then get the required access. 

Thanks
Reply
#2
(01-09-2023, 06:10 PM)Renman3000 Wrote: Hi there, 
I want to set an ObiParticleAttatchment.target, via code. 

I have the index of the obiRope.blueprint.groups[i]... but from there, I am not clear on how how to then get the required access. 

Thanks

Hi,

To set the target, you just do:

Code:
attachment.target = yourTarget;

I'm not sure how the index to the particle group would be related to this, the target and the particle group attached to it are two different things. I can suggest taking a look at the manual's attachments scripting section: http://obi.virtualmethodstudio.com/manua...ments.html

let me know if I can be of further help,

kind regards
Reply
#3
Ok, No problem thank you.
Reply