
Mushi
Joined: Jul 21, 2007
Halo's Ring is just, Awesome.
|
Posted: Jul 17, 2009 12:37 PM
Msg. 1 of 8
Im trying to make a scenery Explosion an respawn in 60 sec how do *edit* *I* do that. I no I need to scripted it but don't no what to put. Edited by Halosnake on Jul 17, 2009 at 12:38 PM
|
|
|

goyanks135
Joined: Nov 13, 2005
|
Posted: Jul 17, 2009 01:25 PM
Msg. 2 of 8
edit: OP is trying to do something different Edited by goyanks135 on Jul 17, 2009 at 05:54 PM
|
|
|

Mushi
Joined: Jul 21, 2007
Halo's Ring is just, Awesome.
|
Posted: Jul 17, 2009 01:35 PM
Msg. 3 of 8
It's a map mine a friend made for me before he left on a 2 week vacation so I can't ask him for help. http://www.youtube.com/watch?v=0LqRZZhBqUYSee how it respawns. I no how to script a little,I get some parts but not all. Thanks for posting btw :P
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jul 17, 2009 03:02 PM
Msg. 4 of 8
Bah. I told him to improve it >:( Here's what you should do for the best possible effect. (global boolean exist true)
(global short plyrnum 0)
(script continuous looping (if (= plyrnum 15) (begin (set plrynum 0) ) (begin (set plyrnum (+ plyrnum 1)) ) ) )
(script continuous aspl0d3 (if (and (volume_test_object [TRIGGER VOLUME] (unit (list_get (players) plyrnum))) (= exist true) ) (begin (effect_new "[DIRECTORY OF EXPLOSION EFFECT TAG]" [FLAG]) (unit_kill (unit (list_get (players) plyrnum))) (object_destroy [SCENERY NAME]) (set exist false) (sleep 900) (effect_new "[DIRECTORY OF RESPAWN EFFECT TAG]" [FLAG]) ;;Note, this line ONLY is optional (object_create_anew [SCENERY NAME]) (set exist true) ) ) )
|
|
|

Mushi
Joined: Jul 21, 2007
Halo's Ring is just, Awesome.
|
Posted: Jul 17, 2009 04:17 PM
Msg. 5 of 8
Don't no what I doing wrong I chang some things in what you posted here.
Notepad name is mine_sonic
(global boolean exist true)
(global short plyrnum 0)
(script continuous looping (if (= plyrnum 15) (begin (set plrynum 0) ) (begin (set plyrnum (+ plyrnum 1)) ) ) )
(script continuous aspl0d3 (if (and (volume_test_object mine_t0 (unit (list_get (players) plyrnum))) (= exist true) ) (begin (effect_new "vehicles\scorpion\shell explosion"mine_det0) (unit_kill (unit (list_get (players) plyrnum))) (object_destroy mine0) (set exist false) (sleep 300) (effect_new "effects\coop teleport"mine_det0) (object_create_anew mine0) (set exist true) ) ) )
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jul 17, 2009 04:50 PM
Msg. 6 of 8
You have to put spaces between "EFFECT" and the flag, so instead of: (effect_new "effects\coop teleport"mine_det0)
You should put (effect_new"effects\coop teleport" mine_det0)
|
|
|

Mushi
Joined: Jul 21, 2007
Halo's Ring is just, Awesome.
|
Posted: Jul 17, 2009 05:32 PM
Msg. 7 of 8
Well I change it but still nothing happened when im done with the notepad I do save it in date/level/ test/bloodgulch/scripts right?
(global boolean exist true)
(global short plyrnum 0)
(script continuous looping (if (= plyrnum 15) (begin (set plrynum 0) ) (begin (set plyrnum (+ plyrnum 1)) ) ) )
(script continuous mine_sonic (if (and (volume_test_object mine_t0 (unit (list_get (players) plyrnum))) (= exist true) ) (begin (effect_new "vehicles\scorpion\shell explosion"mine_det0) (unit_kill (unit (list_get (players) plyrnum))) (object_destroy mine0) (set exist false) (sleep 300) (effect_new"effects\coop teleport"mine_det0) (object_create_anew mine0) (set exist true) ) ) )
If it's anything els you like to add pls say so cause im trying to release this sonic map this Saturday. Edited by Halosnake on Jul 17, 2009 at 05:33 PM
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jul 17, 2009 05:51 PM
Msg. 8 of 8
data\levels\test\bloodgulch\scripts
|
|
|