Jump to content

Connect COL?


iPanda

Recommended Posts

I would like to know how to connect two small collisions in one big collision, if one collision part hit to another collision part. Screenshots:

What event should I use? What are the conditions?

Warning! I need to get one element_data from two the Coliseum!

I tried a simple test collisions, but does not work:

create col:

col1 = createColSphere(0,0,0) 
col2 = createColSphere(1,1,0) 
col1:setData('col',true) 
col2:setData('col',true) 

checking connect:

addEventHandler("onClientColShapeHit",root,function(element) 
    if source:getData('col') and element:getData('col') then 
        outputChatBox('connect collisions') 
    end 
end) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...