Instance parameters

Pawlakov

Deliberately incoherent
aa
Jun 1, 2013
189
41
How do I use func_instance_parms correcty?
For example:
I have a vmf of spawndoor. I want it to have 2 parameters: filter(for trigger) and respawnroom(for visualizer). How do i set it up properly?
I already tried and I failed.
 

Pawlakov

Deliberately incoherent
aa
Jun 1, 2013
189
41
Tried to make instance of respawnroom which include visualizer.
I set associated respawn room to $room.
I added parameter $room target_destination.
In func_instance i set $room to respawnroom's name.
It doesn't work. Both visualizers are nonsolid and visible for both teams
Other parameters like $filter for trigger_multiple work perfectly fine
 

henke37

aa
Sep 23, 2011
2,075
515
Instance parameters are nothing but crude text replacements. Ensure that the text to replace exists.