public void OnConversationEnd(Transform actor) { if (bridge == null) { return; } bridge.SyncLuaToFP(); if (disableWeaponDuringConversations) { bridge.ActivateCurrentWeapon(); } }
/// <summary> /// Listens for the OnApplyPersistentData message and retrieves the game object's position /// and rotation from the Lua Actor[] table. /// </summary> public void OnApplyPersistentData() { if (bridge != null) { bridge.forceWield = forceWield; bridge.SyncLuaToFP(); } if (recordPosition) { ApplyLuaToPosition(); } }