Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Come and join our gamer community by
registering for free here
Other Gaming Forum
PC games
WarCraft III Modding
Having a problem with the respawn trigger
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Captain Griffen" data-source="post: 125558" data-attributes="member: 6053"><p>Or using triggering unit (which lasts after a wait). But even then if the unit gets removed the data gets lost.</p><p></p><p>Best idea is using custom script (all this is custom script, aka JASS).</p><p></p><p>local unit u = GetTriggerUnit()</p><p>local integer id = GetUnitTypeId(u)</p><p>local real x = GetUnitX(u)</p><p>local real y = GetUnitY(u)</p><p>set u = null</p><p>call TriggerSleepAction(GetRandomReal(5., 20.)</p><p>call CreateUnit(Player(12), id, x, y, 0.)</p></blockquote><p></p>
[QUOTE="Captain Griffen, post: 125558, member: 6053"] Or using triggering unit (which lasts after a wait). But even then if the unit gets removed the data gets lost. Best idea is using custom script (all this is custom script, aka JASS). local unit u = GetTriggerUnit() local integer id = GetUnitTypeId(u) local real x = GetUnitX(u) local real y = GetUnitY(u) set u = null call TriggerSleepAction(GetRandomReal(5., 20.) call CreateUnit(Player(12), id, x, y, 0.) [/QUOTE]
Verification
Post reply
Other Gaming Forum
PC games
WarCraft III Modding
Having a problem with the respawn trigger
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top