logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,574
Total Threads: 8,655
Posts: 94,419

Administrators:
DeeZire, Redemption

There are currently 58 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 04-14-2003, 07:07 PM   #1 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: USA
Posts: 452
Default Building self-destruct

I'm looking for a way to make a building self-destruct about 4 seconds after it's built.

I was thinking of doing something like the China Nuclear Plant overload, except that you don't have to click the button, it just happens.

Anyone have any idea on how to do this?
guyee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-14-2003, 07:42 PM   #2 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 853
Send a message via AIM to mastermind2003 Send a message via MSN to mastermind2003
Default

I believe there is a tag that is minlifetime, and maxlifetime. You could probably use those and set them both to 4000 (milliseconds) and that would get you 4 seconds.
mastermind2003 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-14-2003, 08:50 PM   #3 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: England
Posts: 228
Send a message via ICQ to Shadow Send a message via AIM to Shadow Send a message via MSN to Shadow Send a message via Yahoo to Shadow
Default

LifetimeUpadate module I believe
Shadow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-14-2003, 10:33 PM   #4 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: Look Behind you
Posts: 211
Send a message via MSN to Goketa Send a message via Yahoo to Goketa
Default

yep thats it i tested it but with an icon
Just 1 thing why do u want to do a selfdestruct
Goketa is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-15-2003, 04:21 AM   #5 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Netherlands
Posts: 139
Default

My guess would be the fact that he's trying to create a bomb-like structure, or use it to restrict use of certain objects...

To be more precise on the code:

Quote:
Behavior = LifeTimeUpdate ModuleTag_XX
MinLifeTime = 4000
MaxLifeTime = 4000
End
The XX's mark the spot where you can put it in a unique number for the module that isn't used by other modules for that object.

This makes the object explode (well, it will use the state defined for when it is killed). In case you want a more quiet experience:

Quote:
Behavior = DeletionUpdate ModuleTag_XX
MinLifeTime = 4000
MaxLifeTime = 4000
End
This will just make the object vanish without sounds or whatever.

Note: I'm doing this by pure memory. Hence, there might be an error in my code as it is stated. Check carefully with existing objects/modules to see whether the code is correct (rubble and hulks often use either the explosion or deletion module).
CopyKat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-15-2003, 04:22 PM   #6 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: USA
Posts: 452
Default

Thanks guys.

The reason i wanted to know is because i want to make a minelayer, but one that would lay an entire minefield

Basically what this does, is it builds a building, which has the BuildChina mine upgrade attached to it on construction, then it blows up so that the building isnt there, but the mines stay anyway.
guyee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-15-2003, 08:57 PM   #7 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: Look Behind you
Posts: 211
Send a message via MSN to Goketa Send a message via Yahoo to Goketa
Default

bit weird nonetheless it is good
Goketa is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-15-2003, 11:25 PM   #8 (permalink)
Senior Member
 
Join Date: Apr 2003
Location: USA
Posts: 167
Send a message via MSN to Blaine_the_God
Default

Thats a weird imaginative idea I dont know what to think of it
Blaine_the_God is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-16-2003, 06:40 AM   #9 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Netherlands
Posts: 139
Default

You're far better of letting the minelayer "build" an invisible object rather than a structure (doesn't eat up RAM). That invisible object would then spawn the minefield before it vanishes (to prevent it rom looping the spawn).

That's a far better way if you ask me...make the object of the kindof SYSTEM to prevent ppl from having extra lost buildings/units because they used the minelayer...
CopyKat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-16-2003, 06:06 PM   #10 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: Look Behind you
Posts: 211
Send a message via MSN to Goketa Send a message via Yahoo to Goketa
Default

YUP
Goketa is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building IronFist Red Alert 2 & Yuri's Revenge Editing 4 04-16-2005 07:52 AM
Where is this building? adamstrange Generals & Zero Hour Editing 15 07-20-2004 05:04 PM
Self-destruct Spy Plane ? BaRaKa_ Red Alert 2 & Yuri's Revenge Editing 3 05-23-2004 05:54 PM
Making a building into a wall building... smurfbizkit Generals & Zero Hour Editing 3 10-29-2003 07:40 AM
building for fa2 adamstrange Red Alert 2 & Yuri's Revenge Editing 18 02-25-2003 06:05 PM


All times are GMT -4. The time now is 10:22 PM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.