HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spawning...not to close

07-13-2007, 03:03 AM#1
Dooblivion
Hello i wanted to make a spawning trigger like in some rpg maps but with this added: when a unit is to close to a spawning unit the spawn would be canceled
O ya not necescarly replacing a dead unit just spawning like that without to have to wait for another unit to die...

Example:
Event----
Condition----
Action: Spawn unit for player__ at region


Event: A unit is spawned for player__ at region
Condition: No units nearby in radius of 1000
if unit radius of 1000; cancel spawn


o and if you could teach my how to do this
Trigger:
:P
correctly id like it:emote_grin:<----- Not important ... thx maxi
07-13-2007, 03:06 AM#2
maximilianx
well um, theres tons of ways to do a respawn system..O_o

as for making trigger codes it's pretty simple

Trigger:
trigger name in the first line
Collapse Events
Type events to make the flag thing, then put a space at the begining of a new line to indent it.
Collapse Conditions
Same general idea
Collapse Actions
Collapse for each one
Collapse the more spaces in the start of the line
the farther it indents
=P
so there you have it.
07-13-2007, 03:07 AM#3
TheSecretArts
??? u mmmm ??? Please clarify
and wtf:
Quote:
Originally Posted by Dooblivion
I know the spawning trigger to wich a unit is placed to replace the dead unit but i wanted to know if it's possible to do this but it would have a condition of having no units nearby the spawning point
07-13-2007, 03:13 AM#4
Dooblivion
Yup clarify! i thought it was unclear myself but ;p anyway ill clarify it
07-13-2007, 03:19 AM#5
maximilianx
Quote:
Originally Posted by Dooblivion
Yup clarify! i thought it was unclear myself but ;p anyway ill clarify it

um..what? that sure is nerve racking. speak English please. read what you type before you post it umkay?
07-13-2007, 03:19 AM#6
TheSecretArts
Trigger:
Collapse Events
Game - Every x seconds
Collapse Actions
Collapse Unit Group - Pick all units within range of <region>
set <regionrespawntime> = max time