Topic: [suggestion] New Comand "on_player_object_collision"

on_player_object_collision "object name" "new state"

This command is for the character to collide with a specific object, select a state.

Re: [suggestion] New Comand "on_player_object_collision"

This can be done with either on_player_collision or on_player_rect_collision currently, however I believe on_category_collision would be much better overall.

If I knew then what I know now I'd tell you that the story's true.  Cause whatever you do, it comes back to you.  -Slaughter, Burning Bridges

Re: [suggestion] New Comand "on_player_object_collision"

As well as on_category_rect_collision.

Re: [suggestion] New Comand "on_player_object_collision"

Well there's no command that changes the state of an object when it touches another one, having a command like on_object_collision "object "state" would be a very nice feature for "domino" effects, as well as NPCs.

Re: [suggestion] New Comand "on_player_object_collision"

S32X wrote:

Well there's no command that changes the state of an object when it touches another one, having a command like on_object_collision "object "state" would be a very nice feature for "domino" effects, as well as NPCs.

http://opensnc.sourceforge.net/wiki/ind … _collision

Re: [suggestion] New Comand "on_player_object_collision"

S32X wrote:

Well there's no command that changes the state of an object when it touches another one, having a command like on_object_collision "object "state" would be a very nice feature for "domino" effects, as well as NPCs.

"on_object_collision" is for objects, not character! neutral

Re: [suggestion] New Comand "on_player_object_collision"

MatheusRRR wrote:

"on_object_collision" is for objects, not character!

Step 1: Have the object observe a specific player using observe_player.
Step 2: http://opensnc.sourceforge.net/wiki/ind … _collision
Step 3: When that player collides with the object it'll do what you want it to do.

Last edited by lunarrush (2012-12-09 04:44:21)

If I knew then what I know now I'd tell you that the story's true.  Cause whatever you do, it comes back to you.  -Slaughter, Burning Bridges

Re: [suggestion] New Comand "on_player_object_collision"

SilverstepP wrote:
S32X wrote:

Well there's no command that changes the state of an object when it touches another one, having a command like on_object_collision "object "state" would be a very nice feature for "domino" effects, as well as NPCs.

http://opensnc.sourceforge.net/wiki/ind … _collision

Oh right. I forgot about that.