 |
Forum Info
|
 |
Forum Members: 18,575
Total Threads: 8,656
Posts: 94,426
Administrators:
DeeZire, Redemption
There are currently 46 users online.
|
 |
Partner Links
|
 |
 |
Advertisements
|
 |
|
| 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. |
03-12-2005, 11:40 PM
|
#1 (permalink)
|
|
Senior Member
Join Date: Feb 2004
Posts: 872
|
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
|
|
|
03-13-2005, 02:59 AM
|
#2 (permalink)
|
|
Member
Join Date: May 2004
Posts: 42
|
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.
|
|
|
03-13-2005, 04:00 AM
|
#3 (permalink)
|
|
Senior Member
Join Date: Feb 2004
Posts: 872
|
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?
|
|
|
03-13-2005, 04:23 AM
|
#4 (permalink)
|
|
Member
Join Date: May 2004
Posts: 42
|
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.
|
|
|
03-13-2005, 04:28 AM
|
#5 (permalink)
|
|
Administrator
Join Date: Dec 2002
Posts: 1,913
|
Why dont you just get the command button to fire a tertiary 'suicide' weapon that just kills the unit?
|
|
|
03-13-2005, 04:53 AM
|
#6 (permalink)
|
|
Senior Member
Join Date: Feb 2004
Posts: 872
|
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?
|
|
|
03-13-2005, 07:56 AM
|
#7 (permalink)
|
|
Member
Join Date: Dec 2004
Posts: 53
|
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.
|
|
|
03-13-2005, 08:06 AM
|
#8 (permalink)
|
|
Administrator
Join Date: Dec 2002
Posts: 1,913
|
Quote:
Originally Posted by Hostile";p="
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.
__________________
|
|
|
03-13-2005, 02:04 PM
|
#9 (permalink)
|
|
Senior Member
Join Date: Feb 2004
Posts: 872
|
I was not aware that ZH method worked for BFME. Thanx.
|
|
|
03-13-2005, 07:18 PM
|
#10 (permalink)
|
|
Senior Member
Join Date: Feb 2004
Posts: 872
|
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...
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 12:28 AM.
|