Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class 'ModTest'
- function ModTest:__init()
- print("Initializing Mod Test")
- self.m_ReadInstanceEvent = Events:Subscribe('Partition:ReadInstance', self, self.OnReadInstance)
- self.m_MyGuidIWantToChange = Guid("D959DF11-EA30-D238-A0D5-5687735963E4", "D")
- end
- function ModTest:OnReadInstance(p_Instance, p_Guid)
- -- null verification check
- if p_Instance == nil then
- return
- end
- if p_Guid == self.m_MyGuidIWantToChange then
- print("Found what we wanted.")
- local chassis = ChassisComponentData(p_Instance) -- this is the fb::WidgetNode class, if it's a fb::Class in EBX, then it's implemented in VeniceEXT (I hope)
- chassis.transform.right.x = 0.5
- chassis.transform.up.y = 0.5
- chassis.transform.forward.z = 0.5
- end
- end
- -- Initialize the Base.
- local modTest = ModTest()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement