How to connect two func_instances?
For example: there is one func_instance A with three relays to use: a1, a2, a3 and one func_instance B with one relay which takes advantage of func_instance A.
The only way they are connected is in one map over the params of func_instance B.
map_
| |
| A <--- B (parm: A) |
|__|
Is this possibly?
The " @ " Means that the name of the Entitys dont get changed when you compile your level.
And in Instance 2 you (for example) fire an Output " OnTrigger -> @Example_Rl -> Trigger"
So, if you put these 2 INstances in your map, and Instance number 2 fires the output, then the " @Example_Rl " in Instance 1 get triggered.
Understand?
EDIT: Ouh i see, with Parms.
- Put a Logic_Relay in Instance 1.
- Set an Output: " OnTrigger -> $relay_name -> Trigger "
-
Put a Func_instance_parms in Instance 1.
-
In Instance 2 you make a Relay, Maybe named " @Test_Rl "
Now if you place Instance 1 in your map, you set the parm $relay_name to the Relay name of your Instance 2.
Sry for my English spelling, hope you understand what i mean 
The thing is that I have one func_instance which just takes advantage of a whole func_instance I build before and I just want to refer them with one parameter of the new one. What data type need I to choose ? Targed_name_or_class, String, instance_variable, instance_file...?
OnDrop (or whatever that output is)> "> "
That's the instance. On the func_instance, the output is instance:OnPickup or something, but why can't you just use the turret without an instance for this? It's not a large amount of outputs required.
Turret: " OnPickup -> $target -> Trigger"
Func_instance_parms: " Variable: $target " And in " Value " you enter the relay name of the "Instance Music" you wish.
INstance Music: For example: @Relay: OnTrigger -> Music -> Playsound
Another Example @Relay_Dark: Ontrigger -> Music_dark -> Playsound
In Instance_Turret you just change the Value of $target to "@Relay", or "@Relay_dark" or something else
Thats so simple.
@Relay: "Ontrigger -> !self -> kill -> Delay 0.10"
(Or you just check " Fire once only"
And now the music will only started once.
When im later home i will make you an example vmf
The turret in the func_instance will react by OnPickUpPhysGun and the Target Entity for my unknown music_instance has the name $music.
My music_instance has a name with an @ in my map. Then I put the name (with the @) into the parm_field of my turret_instance which replaces the $music and everything works. That's the customization I want. =)
Maybe your gave me the solution on a plate but I didn't see it. =/
Is there a way to set the "FLAG" of an entity by a func_parms field? It would make things a lot easier than what I do actually. =/