Page 1 of 1
how can i make map like obj2(v2)?
Posted: Fri Jul 16, 2004 9:21 am
by tsensor
i followed 'Nemesis's Tutorial
this way can blow up only 1 stuff
i want 2 stuff
like v2
someone teach me plz
Posted: Fri Jul 16, 2004 2:56 pm
by Splaetos
not sure what exactly your asking but...
look at the scr for v2
Code: Select all
allies_win_bomb local.bomb1 local.bomb2:
while (local.bomb1.exploded != 1)
wait .1
while (local.bomb2.exploded != 1)
wait .1
This is where v2 checks is both bombs are exploded. if they are... allies win.
the bobms are sent to the bomb thinker one at a time here.
Code: Select all
$v2_explode thread global/obj_dm.scr::bomb_thinker
$ctrlroom_explode thread global/obj_dm.scr::bomb_thinker
and this is where it sends the resulting info to the victory thread.
Code: Select all
thread allies_win_bomb $v2_explode $ctrlroom_explode
the bomb thinker determines individualy, if each bomb blows up, and sets each one to 'exploded' if they do, and the victory thread checks if both have gone up.