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

Forum Info
Forum Members: 18,575
Total Threads: 8,656
Posts: 94,426

Administrators:
DeeZire, Redemption

There are currently 46 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements

DeeZire Online > Editing Community > LOTR: Battle For Middle Earth I & II Editing » killing your own unit with button LOOK AGAIN!

LOTR: Battle For Middle Earth I & II Editing Discuss any modding related issues to do with the Lord Of The Rings: Battle For Middle Earth I and II RTS games here.

Reply
 
LinkBack Thread Tools
Old 03-12-2005, 11:40 PM   #1 (permalink)
Senior Member
 
Join Date: Feb 2004
Posts: 872
Default killing your own unit with button LOOK AGAIN!

How could I set it up for a unit to kill itself with a commandbutton? I'd like to do this because I'd like to use the death OCL to create another object. TYIA
Hostile is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-13-2005, 02:59 AM   #2 (permalink)
Member
 
Join Date: May 2004
Posts: 42
Default

Button and object upgrade OCL next to it. Give that a max lifetime, fire weapon when killed behaviour module. Weapon kills first unit instantly (short range, high damage) triggering ocl when dead.
AdmiralGT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-13-2005, 04:00 AM   #3 (permalink)
Senior Member
 
Join Date: Feb 2004
Posts: 872
Default

Can't give it lifetime update cause I need it to be alive UNTIL the player chooses the actrivate the death through a button. Than I use the death OCL to create the object.

Mastermind suggested seeing if the detonation code from Generals is ther or fire weapons button from commanche is active in BFME. That would surely do the job.

HINT Dee, any ideas?
Hostile is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-13-2005, 04:23 AM   #4 (permalink)
Member
 
Join Date: May 2004
Posts: 42
Default

I think i've confused you a little, you give the MaxLifetime to a second OCL. I'll go through the steps:

1. Unit with Command Button
2. Player Pushes button
3. Button creates OCL 1 Object (like a Battle Drone, but invisible, small and on "on top" of the unit
4. OCL 1 Object has a maxlifetime
5. OCL 1 Object dies after x time, firing weapin with "fireweaponwhendie" behaviour module.
6. Fires incredibly strong, short range weapon that kills the original unit.
7. Original unit dies, creating OCL 2 Object.

That should all be possible.
AdmiralGT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-13-2005, 04:28 AM   #5 (permalink)
Administrator
 
DeeZire's Avatar
 
Join Date: Dec 2002
Posts: 1,913
Send a message via ICQ to DeeZire
Default

Why dont you just get the command button to fire a tertiary 'suicide' weapon that just kills the unit?
DeeZire is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-13-2005, 04:53 AM   #6 (permalink)
Senior Member
 
Join Date: Feb 2004
Posts: 872
Default

I'll have to play with both ideas. But I don't see how you can fire a tertiary weapon without aiming it at something? I look to the balrog with a tertiary weapon and it still has to be aimed. Click a target, sorta thing

AdmiralGT OCL method sounds more doable. Unless I'm not aware of something Dee?
Hostile is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-13-2005, 07:56 AM   #7 (permalink)
Member
 
Join Date: Dec 2004
Posts: 53
Default

ive figured this out now, i used a similar weapon as the uruk bomb as when this deploys it dissapears and creates a new 1, the problem now is that a weapon cannot be fired by a nazgul due to the infamous giantbirdai, so the witchking cannot dismount the fellbeast.
Halbarad is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-13-2005, 08:06 AM   #8 (permalink)
Administrator
 
DeeZire's Avatar
 
Join Date: Dec 2002
Posts: 1,913
Send a message via ICQ to DeeZire
Default

Quote:
Originally Posted by Hostile";p=&quot View Post
I'll have to play with both ideas. But I don't see how you can fire a tertiary weapon without aiming it at something? I look to the balrog with a tertiary weapon and it still has to be aimed. Click a target, sorta thing

AdmiralGT OCL method sounds more doable. Unless I'm not aware of something Dee?
Just copy the tertiary weapon that all the units from Zero Hours Demo General used. They all had a 'detonate now' button.
__________________
DeeZire is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-13-2005, 02:04 PM   #9 (permalink)
Senior Member
 
Join Date: Feb 2004
Posts: 872
Default

I was not aware that ZH method worked for BFME. Thanx.
Hostile is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-13-2005, 07:18 PM   #10 (permalink)
Senior Member
 
Join Date: Feb 2004
Posts: 872
Default

Well, I have created a worker that uses a fire weapon to detonate an isengardmine weapon. Blows up quite nicely. Unfortunately, you cannot kill yourself. I've chose ALLIES for RadiusDamageAffects. I've chosen SELF from the old ZH code.

Even with DamageDealtAtSelfPosition is useless. You can easily kill your comrades. But killing yourself is impossible.

RadiusDamageAffects = SELF ALLIES
DamageDealtAtSelfPosition = Yes

No luck. Unless someone can prove wrong than this method is impossible. I will have to resort back to using an upgrade with an FX OCL that has a lifetimer that expires and blows up the original unit, therefore releasing the final product. An OCL that creates my objective.

Too many hours wasted on this one...
Hostile 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
button images ???? zogle Generals & Zero Hour Editing 3 10-22-2006 01:26 PM
Faction Unit, Building, Commandset and Button ?? Tesla-Chrono Generals & Zero Hour Editing 2 03-01-2004 09:40 AM
button images NewGhost Generals & Zero Hour Editing 36 10-06-2003 12:14 PM
Fire_Weapon button OminousSilence Generals & Zero Hour Editing 3 07-01-2003 05:16 AM
Button textures? Drogan Generals & Zero Hour Editing 4 03-15-2003 01:28 PM


All times are GMT -4. The time now is 12:28 AM.


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