Skip to content

Trigger Encounter near players in Module

How can I spawn an encounter next to a player? Is that possible?

Comments

  • Lex23Lex23 Member Posts: 34
    If you're using an encounter trigger, you can select the encounter on the map (or in the menu bar on the left), and then right-click on the ground where you want the encounter to spawn. It will create a Spawn Point token, kind of like a Waypoint but it looks distinct, which you can grab and drag to wherever you want the creatures to spawn in.
  • BuddywarriorBuddywarrior Member Posts: 62
    After looking at the lexicon, I dont see a way to spawn a creature from an Encounter resref. I was hoping something like CreateObject(OBJECT_TYPE_ENCOUNTER, "zombiegrp001", lTarget), or something would exist similar to CreateTrapAtLocation(), but I see nothing.
  • Lex23Lex23 Member Posts: 34
    Oh I see what you're trying to do. Yeah, I don't know of a way to do that, but you could spawn the creatures directly from the script.
  • ProlericProleric Member Posts: 1,269
    ...using CreateObject at GetLocation(oPC).

    You can spawn a mob that way - the engine ensures that each spawn is at a legal location next to the PC but without clipping.
Sign In or Register to comment.