Player position ( UCC + AC )

Hello,

I want to change position of UCC character run time from script. When player press "E" then change it position. I have added code for change position using transform.position but it's not work because camera not attached with player.

Please let me know about solution in detail.

I am using v1.67.0 version of adventure creator and using 2.1.2 of UCC.

Thanks.
 
You have UCC working with Adventure Creator? I have wanted that integration to work for the longest time (like in the old version), though Justin delayed it because he was too busy with a new update and Agility Pack I think.

If you have them working then you should just be able to use Adventure Creator's Object: Teleport action to move the character to a specified marker.
 
var characterLocomotion = m_Character.GetComponent<UltimateCharacterLocomotion>();
if (characterLocomotion != null) {
characterLocomotion.SetPositionAndRotation(Vector3.zero, Quaternion.identity);
characterLocomotion.SetActive(false);
}


It's work fine for change position.

Thank you for the help :)
 
Top