Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grapple target is visible even when disabled #141

Closed
Malcolmnixon opened this issue Jun 2, 2022 · 1 comment
Closed

Grapple target is visible even when disabled #141

Malcolmnixon opened this issue Jun 2, 2022 · 1 comment

Comments

@Malcolmnixon
Copy link
Collaborator

When the grapple movement provider is disabled (by setting enabled=false) the grapple target still becomes visible when aimed at a suitable layer. The problem is in the _process function of Function_Grapple_movement.gd. Specifically:

	# Update grapple target
	if !is_active and _grapple_raycast.is_colliding():

should be:

	# Update grapple target
	if enabled and !is_active and _grapple_raycast.is_colliding():
@Malcolmnixon
Copy link
Collaborator Author

Grapple target now hides when the target can't be grappled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant