Timed destruction

Discuss Halo 2 modding, progress on figuring things out, mapfiles...you know the drill. Cheating discussion not allowed.
Post Reply
User avatar
-Treetoad-




Coagulator Commentator

Posts: 736
Joined: Sat Jun 03, 2006 7:58 pm
Contact:

Timed destruction

Post 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 :)
Sig over file size limit.
User avatar
T1xAnton




Coagulator Recreator Connoisseur

Posts: 1213
Joined: Sat Mar 25, 2006 8:54 pm
Location: Corbin, KY
Contact:

Post by T1xAnton »

You could have an invisible explosion, time to go off every so often with scripts.
Accept Change.
User avatar
bricksarefun
Readers Club





Posts: 411
Joined: Mon Feb 26, 2007 7:19 pm
Location: Behind 7 proxies

Post by bricksarefun »

Scripts

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

:D
ImageImage
iGeo wrote:And why the hell do you yanks have your flag like EVERYWHERE... do you forget what country you're in or something?
-DeToX-




Illusionist Recreator Connoisseur Acolyte
Sigma Decryptor Droplet Pyre
Blacksmith Socialist New Age System Engineer
ONI

Posts: 4589
Joined: Sun Jun 18, 2006 3:58 pm
Location: ...

Post 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.
Image
User avatar
kibito87




Stylist Connoisseur Advisor Bloodhound
Droplet Articulatist 500

Posts: 3461
Joined: Mon Feb 21, 2005 7:49 pm
Location: Ohio
Contact:

Post 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?
Image
User avatar
-Treetoad-




Coagulator Commentator

Posts: 736
Joined: Sat Jun 03, 2006 7:58 pm
Contact:

Post 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.
Sig over file size limit.
User avatar
CaptainPoopface




Artisan Advisor Literarian 250

Posts: 408
Joined: Mon Jul 23, 2007 7:56 am

Post 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.
Retired. Thank you neodos, DemonicSandwich, DarkShallFall, Dragonfire, foxfanatic2317, GOWO and everyone in the hall of fame.
If you want to know how I did something, take apart my mods.
User avatar
bumlove




Literarian 250

Posts: 305
Joined: Tue May 29, 2007 1:17 pm
Location: Islamic fundamentlist capital of europe, seriously my home town is a hole

Post 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
never underestimate the predictability of stupidity
Post Reply