Instance parameters

Discussion in 'Mapping Questions & Discussion' started by Pawlakov, Dec 16, 2016.

  1. Pawlakov

    Pawlakov L4: Comfortable Member

    Messages:
    154
    Positive Ratings:
    34
    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.
     
  2. Idolon

    aa Idolon the worst admin

    Messages:
    1,421
    Positive Ratings:
    4,154
    Parameters are covered near the end of this guide. Hope it helps!
     
    • Thanks Thanks x 1
  3. Pawlakov

    Pawlakov L4: Comfortable Member

    Messages:
    154
    Positive Ratings:
    34
    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
     
  4. henke37

    aa henke37

    Messages:
    1,834
    Positive Ratings:
    420
    Instance parameters are nothing but crude text replacements. Ensure that the text to replace exists.
     
  5. Pawlakov

    Pawlakov L4: Comfortable Member

    Messages:
    154
    Positive Ratings:
    34