Skip to content

HitboxComponent on an object with a CarryableComponent #104

Closed Answered by Phazorknight
ac-arcana asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I've implemented this in 6f5930b

The commit notes should mention how it works, but it's pretty straight forward. Simply attach it to a CogitoObject (it HAS to be a cogito object) and make sure it has a reference to the object's HealthAttribute. This should make it compatible with all other components, for example the red barrel in the Lab scene can be carried around and still works with the HitboxComponent.

All current damage dealers have been updated to work this way. This means currently these can only damage CogitoObjects.

Replies: 4 comments 3 replies

Comment options

ac-arcana
Mar 11, 2024
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ac-arcana
Comment options

ac-arcana Mar 12, 2024
Collaborator Author

@Phazorknight
Comment options

Comment options

You must be logged in to vote
1 reply
@ac-arcana
Comment options

ac-arcana Mar 12, 2024
Collaborator Author

Answer selected by ac-arcana
Comment options

ac-arcana
Mar 12, 2024
Collaborator Author

You must be logged in to vote
0 replies
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