how can i make map like obj2(v2)?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
tsensor
Sergeant
Posts: 52
Joined: Wed Feb 11, 2004 1:25 pm

how can i make map like obj2(v2)?

Post 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
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post 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.
When I am king, you will be first against the wall~
Image
Post Reply