No announcement yet.

Some Math Here Please !

  • Filter
  • Time
  • Show
Clear All
new posts

    Some Math Here Please !

    Hi there,

    I just wanna to ask you guys that, in my project whenever i left click object spawn into scene with own price and right click destroy actor (price is standing) ! Regarding to this tutorial ( i create mine but whenever i remove actor i would like to value (price) minus as i defined to object ! Can you please tell me what shall i have to do ?
    Note: Details in attachement !

    actor bp

    Click image for larger version  Name:	actor bp.JPG Views:	1 Size:	47.6 KB ID:	1459429
    building widget price function
    Click image for larger version  Name:	building widget price function.JPG Views:	1 Size:	81.6 KB ID:	1459430
    Click image for larger version  Name:	firstpersoncharacter_price_function.JPG Views:	1 Size:	46.3 KB ID:	1459431
    Thank you and Best Regards

    There are few ways to achieve this. Two of them:

    A. Create two separate functions to RaisePrice and DropPrice and call them accordingly when you spawn or destroy actor.
    B. Keep this function but only with raise input. You would do everything the same when you spawn actor but when you destroy it you would need to enter negative value.


      Thank you exadi, i did what you suggested and working like charm, cheers..

      Click image for larger version

Name:	done.JPG
Views:	17
Size:	65.8 KB
ID:	1459472