ObjectID =  event .collision .create  (  Procedure ,  ObjectID ,  Nature ,  Index  )  
                                               
Description :

This instruction creates events when two objects collide.

Parameters :

  • Name of the procedure managing the event.
  • ObjectID of the graphic object (2D or 3D).
  • 1..65535
    No event is created when two objects of the same nature collide. In a game, for example, players on the same side can be given the same nature so as not to collide.
  • This parameter is facultative. If you create many events, it may be easier to call an Index rather than a ObjectID. To do so, place each ObjectID in a table and call the procedure using an index to the table.

Return Handle :

  • ObjectID of the event.

Notes :


When creating the procedure, you should always organize its eight parameters in the following order: Event ObjectID 1, Object ObjectID 1, Index 1, Object Type 1, Event ObjectID 2, Object ObjectID 2, Index 2, Object Type 2.

Examples :