Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Ateam on December 13, 2016, 09:41:25 PM

Title: (Photon) activate colliders or objects
Post by: Ateam 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)
Title: Re: (Photon) activate colliders or objects
Post by: jeanfabre 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
Title: Re: (Photon) activate colliders or objects
Post by: Ateam 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

Title: Re: (Photon) activate colliders or objects
Post by: Ateam on December 14, 2016, 06:17:36 PM
If you have time, i can send you that test  :'(
Title: Re: (Photon) activate colliders or objects
Post by: jeanfabre 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
Title: Re: (Photon) activate colliders or objects
Post by: Ateam on December 15, 2016, 05:50:57 AM
Yup it need a sample, thanks
Title: Re: (Photon) activate colliders or objects
Post by: Ateam on December 15, 2016, 11:20:12 PM
ok I wait for that sample  :)