Chris Vossen Posted March 11, 2013 Author Share Posted March 11, 2013 Sorry to bump but anyone know how to set custom collision types in Leadwerks 3? I know how to set a collision type. Cheers! SetCollisionType Quote Link to comment Share on other sites More sharing options...
tjheldna Posted March 12, 2013 Share Posted March 12, 2013 Hi Chris, Very sorry I think I was unclear....... In LE2 the function is Collisions(1,6,1) say to let the engine know types 1 and 6 do collide. Is there and LE3 equivelent? Many Thanks! Quote Link to comment Share on other sites More sharing options...
YouGroove Posted March 12, 2013 Share Posted March 12, 2013 The best is to attach some different script to type 1 and type 6 or have a custom global variable indicating who is it ? type 1 or type 6. The mor esimple is to detect any entity that collides, than when it collides you just check the "script name" of the entity or some interna variable of the class. If self.type == 1 If self.type == 6 if slef.script == Goblin (type 1) if slef.script == golem (type6) I htink there are good ways of doing what you want. Quote Stop toying and make games 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.