playMaker

Author Topic: Set Property on Owner?[SOLVED]  (Read 2457 times)

brisck1

  • Playmaker Newbie
  • *
  • Posts: 40
Set Property on Owner?[SOLVED]
« on: January 29, 2014, 08:06:12 AM »
Hi,

I'm trying to set up a simple FSM template that I can just place on meshes so that, on reaching a certain distance from the player, disables the Mesh Renderer on an object. The problem is that in order to specifically disable the mesh renderer, I need to use to set property action, which requires me to specify the object in the scene first.

Is there a way to do a Set Property action on the owner object so I don't have to specify the mesh?
« Last Edit: January 30, 2014, 06:14:59 AM by jeanfabre »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Set Property on Owner?
« Reply #1 on: January 29, 2014, 08:15:59 AM »
In the start state do some initialization, such as Get Owner / Get Component before going to your next state where you do stuff.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

brisck1

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Set Property on Owner?
« Reply #2 on: January 29, 2014, 08:22:45 AM »
Ah yep, get component was exactly what I needed! Thanks!