Jump to content

Collision reponse


drarem
 Share

Recommended Posts

How would I determine if my character collided with another prop or scene, and then proceed to call a function such as 'pick it up'?

 

I have for a coin:

currEnt->SetCollisionType(1);

 

Then my player has it's collision type set to 1 (a prop).

 

I can call 'collisiontype' and that's all it returns on my player entity. I collide with the coin but don't know how to check for that specific coin in the code.

 

Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...