Passing dependencies to another procedure.

Started by StellaeLux on Fri, 09/20/2019 - 21:18

Topic category: Help with MCreator's application

Last seen on 22:17, 20. Oct 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Passing dependencies to another procedure.
Fri, 09/20/2019 - 21:19 (edited)

In the simple scenario:

Procedure1: (Provides Entity)

[Advanced] Call procedure Procedure2

Procedure2: (Provides nothing)

[Entity] Is current entity of (sub)type [type]

----------------------------------------------------------------

So obviously, one could simply throw "[Entity] Is current entity of (sub)type [type]" inside of procedure 1 and do away with procedure 2 all together... after all, why would you even need procedure 2 to exist?

Well, I'm in the situation where that might prove to be extremely helpful. So my question is:

Is it possible to pass on the dependency from procedure 1 to procedure 2 and if so, how? (And additionally, passing on a number/boolean value) :

Procedure 1: (Provides entity)

set custom_variable to 2

call Procedure 2 (Pass on custom_variable and entity dependency)

Procedure 2: (provides nothing originally)

if Is current entity of (sub)type

set custom_num to custom_variable

 

Edited by StellaeLux on Fri, 09/20/2019 - 21:19