Team Wilson Docs
  • PPG 3D
    • API
      • Main3D Function
      • Register
      • Action Events
      • Modify Property
      • Run Method
      • Add 3D Component
      • New Voxel Item
      • Categories
    • Voxels
      • Creating Your Own Voxel Model
      • Models
    • Snippets
      • Lean Monster Addon
    • Resources
  • RageBox
  • Character Creator
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. PPG 3D
  2. API

Modify Property

Two functions are used to modify the properties of PPG 3D classes specifically.

ModifyProperty is used to modify a singular defined object It uses 4 parameters.

  1. Object to Update - GameObject

  2. Class to Update - string "className"

  3. Property to Update - string "propertyName"

  4. New Value

Example:

GameObject.Find("Mod3DAPI").SendMessage("ModifyProperty", new object[]      
{
    Instance,
    "DPerson",
    "Blood",
    5000
}, SendMessageOptions.DontRequireReceiver);

ModifyPropertiesInChildren is used to modify the properties of the children and main object. It also uses 4 parameters.

  1. Parent to Update - GameObject

  2. Class to Update - string "className"

  3. Property to Update - string "propertyName"

  4. New Value

Example:

GameObject.Find("Mod3DAPI").SendMessage("ModifyPropertiesInChildren", new object[]          
{
    Instance,
    "Limb3D",
    "Health",
    150
}, SendMessageOptions.DontRequireReceiver);
PreviousAction EventsNextRun Method

Last updated 1 year ago

Was this helpful?