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.
Object to Update -
GameObject
Class to Update -
string "className"
Property to Update -
string "propertyName"
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.
Parent to Update -
GameObject
Class to Update -
string "className"
Property to Update -
string "propertyName"
New Value
Example:
GameObject.Find("Mod3DAPI").SendMessage("ModifyPropertiesInChildren", new object[]
{
Instance,
"Limb3D",
"Health",
150
}, SendMessageOptions.DontRequireReceiver);
Last updated
Was this helpful?