playMaker

Author Topic: how can I set the strike force in VR?  (Read 1282 times)

Strom_555

  • Playmaker Newbie
  • *
  • Posts: 4
how can I set the strike force in VR?
« on: December 29, 2021, 10:42:21 AM »
hi i need to ask how do i set it up when i if with the sword I hit strongly subtract -3 and if it is weak then -1 durability? is there such a thing in the playmaker relativeVelocity.magnitude ?I made my own code that works that way but how do I do it in playmaker?
« Last Edit: December 29, 2021, 01:18:07 PM by Strom_555 »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: how can I set the strike force in VR?
« Reply #1 on: December 30, 2021, 10:01:29 AM »
Hi.
You can use Collision Event and Get Collision Info (relative speed)
Then 'Game Object Compare Name and then some float compares.
Then some Tmp Set color and some instantiates.

You can also make a Custom action if you wish.

If you right click on actions you can select 'Edit Scripts' there you can see how the scripts work.
Also here is a link to the Playmaker API

If you will be reusing those destroy parts, i strongly suggest you to look into pooling.