Jump to content

Adding a PartModule with a plugin


Recommended Posts

Hi

Not really sure if I'm going about this the right way, and a little out of my depth, but...

I want to add a FXModuleLookAtConstraint module to a part from a plugin. I'm aware that usually this would be done from the config, but I need a little more control than that as I'm attempting a little cunning trickery with different versions of the same part (left and right handed version in this case).

Adding it is easy:


this.part.AddModule("FXModuleLookAtConstraint");

Adding the CONSTRAINLOOKFX (node??) with its two config configurable options targetName and rotatorsName is where I'm stuck, and I can't it figure it out by looking through the available methods in the VS inspector in this case.

As ever, a nudge in the right direction would be gratefully received :)

Many thanks

Lo-Fi

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...