| 10-17-2007, 02:43 PM | #1 |
Custom wait allow u to have 0.01 wait accuracy. Custom wait is actually a small system called MaDScene, since custom wait only works inside scene functions. Scene functions does not allow locals. It is good to use for cinematic, can also be used for other things with a bit of imagination. I have not written any documentation for this, since its simple. So i just put the source out here for people who wanna use it. It is so easy tat u dont need to learn... just copy paste and change some values. |
| 10-17-2007, 07:34 PM | #2 |
Can you please post the code? I want to know how it looks like, but I don't have wc3. |
| 10-17-2007, 08:35 PM | #3 |
JASS://this is how it would look in Jass/vJass when u declare custom wait function: //! runtextmacro NewScene("JassWait") call BJDebugMsg("Jass wait, waiting 2.36 seconds for new message") //! runtextmacro Wait("2.36") call BJDebugMsg("Boom!") //! runtextmacro Wait("1.24") call BJDebugMsg("BANG!") //! runtextmacro Wait("1") call DisplayTextToForce( GetPlayersAll(), "END OF DEMOSTRATION - By MaD[Lion]" ) //! runtextmacro EndScene() function Trig_vJass_Actions takes nothing returns nothing call Scene.Play(SceneFunction.JassWait) endfunction //=========================================================================== function InitTrig_vJass takes nothing returns nothing set gg_trg_vJass = CreateTrigger( ) call TriggerAddAction( gg_trg_vJass, function Trig_vJass_Actions ) endfunction That is how u use it with vJass... I also added GUI example in the map, but i dont like GUI so i wont show here. Its for newbies who like GUI. |
| 10-17-2007, 09:36 PM | #4 | |
Quote:
Can you put this wait inside a function, then call that function and expect things to work correctly? |
| 10-17-2007, 09:49 PM | #5 |
u can only use this wait in a special declared function. Download and and look |
