playMaker

Author Topic: (Photon) activate colliders or objects  (Read 2455 times)

Ateam

  • Full Member
  • ***
  • Posts: 116
(Photon) activate colliders or objects
« on: December 13, 2016, 09:41:25 PM »
Hi I need help,  I am new using Photon, I instanciate the players to the terrain using photon but I need  That those characters when they decide attack they  activate one collider inside the sword only in one character. and when that collider is inside to the other player he substract her life. When the player A is attacking to the player B the collider is not activating when i press the activator , and same with the other.(Sorry for my English)
« Last Edit: December 13, 2016, 09:48:34 PM by Ateam »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: (Photon) activate colliders or objects
« Reply #1 on: December 14, 2016, 01:55:38 AM »
Hi,

 yes, you need to go with the "is Mine" action and enable/disable that collider only when isMine is true.

Bye,

 Jean

Ateam

  • Full Member
  • ***
  • Posts: 116
Re: (Photon) activate colliders or objects
« Reply #2 on: December 14, 2016, 05:08:38 PM »
Hi
   
Not work, here in the video you can see what i do
 online it not work, the collider is disabled in my console but not in the other player

« Last Edit: December 14, 2016, 06:27:50 PM by Ateam »

Ateam

  • Full Member
  • ***
  • Posts: 116
Re: (Photon) activate colliders or objects
« Reply #3 on: December 14, 2016, 06:17:36 PM »
If you have time, i can send you that test  :'(

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: (Photon) activate colliders or objects
« Reply #4 on: December 15, 2016, 03:16:04 AM »
Hi,

 Ok, I see, so you don't want this to be related to the various instances over the network, but rather only available for your "isMine" character.

 so, you should have all the logic of enabling and disabling the collider ONLY working if "isMine", that includes both enabled and disabling.

 If you keep struggling with this, I'll come up with a sample. Photon has created new samples that shows just that, so I'll port them to PlayMaker.

 Bye,

 Jean

Ateam

  • Full Member
  • ***
  • Posts: 116
Re: (Photon) activate colliders or objects
« Reply #5 on: December 15, 2016, 05:50:57 AM »
Yup it need a sample, thanks

Ateam

  • Full Member
  • ***
  • Posts: 116
Re: (Photon) activate colliders or objects
« Reply #6 on: December 15, 2016, 11:20:12 PM »
ok I wait for that sample  :)