搜索结果: *

  1. Kalthemir

    Picking Up And Equipping Weapons/ Items In Scenes

    I found out that you can spawn items on entry points from within a mission template. I found this under one of the mission templates for the tutorial scene, and just copied it and messed around with the numbers.

          (ti_before_mission_start, 0, 0, [],
          [

    (assign, "$g_position_to_use_for_replacing_scene_items", pos:cool:,
            (call_script, "script_replace_scene_items_with_spawn_items_before_ms"),

      ]),


    (0, 0, ti_once, [],
          [
            (call_script, "script_replace_scene_items_with_spawn_items_after_ms"),
           
            (entry_point_get_position, pos1, 50),
            (set_spawn_position, pos1),
            (spawn_horse, "itm_charger", imod_champion),

            (entry_point_get_position, pos1, 51),
            (set_spawn_position, pos1),
            (spawn_item, "itm_sniper_crossbow", 0),

    ]),

    I'm not too sure what positions are used for (i.e. where it says "pos1"). If someone could clarify that, I would be much appreciative. What I do know, though, is that it works :lol:


    I also added a horse in there, as you may have noticed. Works just as good as the items.

    Anyway, just put copy the code from the spoiler and add it under the trigger block within the mission template you are using for your scene. And then place the entry points where you want the items to be in your scene.
后退
顶部 底部