Skip to content

Unable to get Netfox functions to fire #211

Closed Answered by albertok
jeremyhcho asked this question in Q&A
Discussion options

You must be logged in to vote

Whats your _ready function look like in the CharacterController?

Make sure you are initialising the rollback synchronizer there and probably also the best place to set authority on the Input.

Something like:

@onready var inputs : PlayerInput = $Input
@onready var rollback_synchronizer: RollbackSynchronizer = $RollbackSynchronizer

func _ready():
        inputs.set_multiplayer_authority(id)

	#Give things a frame to apply, then tell rollback synchronizer to refresh
	await get_tree().process_frame
	rollback_synchronizer.process_settings()
	

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jeremyhcho
Comment options

Answer selected by elementbound
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants