Wikia

Scratchpad

SHoWW2:OffMapArtillery

217,587pages on
this wiki
Discuss this page0

Off map artillery tutorial

This is a small tutorial how can you make a off map artillery bombing. Well, first open your mission file with the map editor and then using the "W" button create waypoints. These waypoints will be target where a bomb drop.

After this, close your map editor and open your map mission file with notepad. To the trigger part add this code into it.

  {trigger "artillery"    //Trigger name, it can be anything you want
     {actions
        {"spawn"          //This is spawn command. You can create entitys to the game world with this.
           {"entity" "air_bomb_small"} //This spawn command tells the game to create "air_bomb_small"(Try air_bomb for bigger boom)
           {"waypoint/uid" "0"}       //The bomb will be spawned in waypoint "0" (you can check your waypoint number with editor)
        }
        {"spawn"
           {"entity" "air_bomb_small"}
           {"waypoint/uid" "1"}
        }
        {"spawn"
           {"entity" "air_bomb_small"}
           {"waypoint/uid" "2"}
        }
     }
  }

This trigger will spawn 3 air bombs in waypoints 0,1 and 2. Also this trigger don't have any conditions, this means the artillery bombing starts when the map starts.

Ok, still one thing to do. Search text for "waypoints". We need to put some offset from the ground to the waypoints so the air bombs will explode. Run your map one time now, you see what I mean then.

Now add this to the every air bomb waypoint (in this case 0,1 and 2)

{OffSetZ 100}

It should look like this now

  {waypoints
     {0
        {position 1437.541992 2051.354736 0.000000}
        {OffSetZ 100}
     }
     {1
        {position 1571.126587 1967.522339 0.000000}
        {OffSetZ 100}
     }
     {2
        {position 1629.367798 2101.929199 0.000000}
        {OffSetZ 100}
     }
  }

If you want bombs drop higher from ground put 200 or 1000 or anything your want in the offsetZ.

Around Wikia's network

Random wikia