drarem Posted December 29, 2014 Share Posted December 29, 2014 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. Quote Link to comment Share on other sites More sharing options...
Thirsty Panther Posted December 30, 2014 Share Posted December 30, 2014 For your player to interact with an object you use the "use" function. Aggror shows you how to make a box interactive and operate a pressure plate here More info and triggers here http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/collision-r778 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.