Page 1 of 1

Timed destruction

Posted: Sat Nov 03, 2007 6:56 pm
by -Treetoad-
I had a brilliant idea for a fun mod, but most of what it would need requires knowledge past everything that I know. So my question today is, how do i make something such as a wall be destroyed over a fixed amount of time, say, 3 minutes? If your wondering, im going to try to remake FortWars from Garry's mod. Thanks in advance :)

Posted: Sat Nov 03, 2007 7:47 pm
by T1xAnton
You could have an invisible explosion, time to go off every so often with scripts.

Posted: Sat Nov 03, 2007 7:47 pm
by bricksarefun
Scripts

(script startup wall_destroy
(begin
(sleep 5400)
(object_destroy wall)
)
)

:D

Posted: Sat Nov 03, 2007 7:59 pm
by -DeToX-
This man is indeed correct.
And you could make it create an object(one with the same model, only a variation of part of it being blown up.

Posted: Sat Nov 03, 2007 8:05 pm
by kibito87
wow, I had to say this but Bricks for the Win! I didn't think you modded halo2...unless you got back into it?

Posted: Sat Nov 03, 2007 8:15 pm
by -Treetoad-
I mod, but i never really get anything to the point that it's "release worthy". In fact, this will probably end up the same if someone begs me to release it (which is what happened with my first and only release anyways :P)

Also, I'm not the greatest with scripts... so I probably won't get very far trying that. On second thought I could always get a certain someone to help me out.

Posted: Sun Nov 04, 2007 5:51 am
by CaptainPoopface
You could use the itmc to spawn a detonating projectile at the same coordinates as the destructible wall. Use an invisible grenade with all material responses set to "Attach." Set the detonation time of the projectile to 3 minutes and spawn it at startup. Chain spawn a damaged wall bloc from the explosion if you want.

It would be much easier than scripting.

Posted: Sun Nov 04, 2007 10:43 am
by bumlove
I have a very similar problem and since a scripter has help once perhaps he may again I have lots of lights (blocs) that are referenced as script objects (called "static"_"0-35") and they spawn as/by script object spawn setting 256 (not at start up or by script but 256 whatever that is) I would like to destroy them by a switch (called "static_36" again a 256er ) and have them respawn again 2 minutes later
could someone type up the basic script for destroying static 0-2 with the switch (static 36) and respawning them again after 1minute and I'll do the rest