/*
Free and Open Source Code:
Anyone may copy, use, and redistribute the code contained herein without restriction implied or otherwise.
Limitation of Liability:
The author of this code can't be held liable for any results pursuant to the use of code whether expected or unexpected. Including any disputes arising from third parties about the usage by the user of the code; if by circumstance of dispute regarding proprietorship a lawsuit arises then the author of this code can't be held liable for any expenses or losses incurred by users of this code(royalties, etc arising from resolution of dispute).
*/
Use a placeable in combination with a trigger/area to spawn and despawn monsters
about the circumference of a circle with its center being the placeable. Also,
the placeable can use an OnHeartbeat event to spawn more monsters during the
encounter(script provided). If the placeable is destroyed then the monsters
are killed then destroyed also. The placeable with the OnHeartbeat event is
also spawned dynamically to reduce the number of OnHeartbeat calls to only
the situations where the PC is nearby the placeable.
I chose to use an area transition trigger so that the boundaries of the trigger
are clearly visible. Unfortunately, the drawback is that pathing is slightly
bugged. However, in the intent of testing the functionality of the scripts
I think that the area transition trigger is better. When actually implementing
these scripts use a generic trigger.
Posted by some_freak at 2009-04-08 13:42:41 Voted 10.00 on 04/08/09
THIS. IS. PERFECT! I had a particular minigame in mind where creatures are spawned from a placeable portal and they stop spawning from it when the placeable is broken, and this is frickin perfect! (sort of like in Diablo II how the blood hawks spawned from that tree-heart-looking nest) first vote too :) come on people this is good and useful! _________________________ I lolzorz @ j0ur paffetik gramerz!
You must be Logged In to post comments in this section.