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

Forum Info
Forum Members: 18,679
Total Threads: 8,804
Posts: 95,887

Administrators:
DeeZire, Redemption

There are currently 23 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements

DeeZire Online > Editing Community > Command and Conquer Editing > Generals & Zero Hour Editing » How to get infantry out of vehicle by an upgrade?

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

Reply
 
LinkBack Thread Tools
Old 05-02-2005, 10:27 AM   #1 (permalink)
Senior Member
 
Join Date: Feb 2004
Location: China
Posts: 356
Default How to get infantry out of vehicle by an upgrade?

How to get all soldiers out of a humvee by an upgrade if that vehicle contains some infantry?
I'm going to apply a ReplaceObjectUpgrade to humvees, so I will have to make the souldiers out before the vehicle is replaced. I know the following logic can work with RiderChangeContain, but not with TransportContain.
Code:
ObjectCreationList OCL_DitchRider
  CreateObject
    ObjectNames = RidersDummy
    Count = 1
    ContainInsideSourceObject = Yes
  End
End
thanks for any help.
coolfile is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-02-2005, 12:25 PM   #2 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
Default

Generally it cannot be done, but you can however work around this and create something which simulates it.

First of all, ditch the replaceobject approach, its' rubbish, try this instead...

Code:
Behavior = CreateObjectDie ModuleTag_99
  DeathTypes = EXTRA_2
  CreationList = [an OCL that creats the new unit]
  TransferPreviousHealth = Yes
End
What this simply does is, if the unit is killed by a weapon with that deathtype, it will create the OCL with the new object(s) retaining the last known energy of the unit before it was killed.

All you need to do then is create a suicide button like the bombtruck, with which the suicide weapon has the EXTRA_2 deathtype (make sure no other weapon has this deathtype), make sure that there are no sounds or effects for dying by the EXTRA_2 deathtype aswell.

When you click the button, the unit 'dies' and is replaced with the OCL object with the same energy (incdently, make sure the OCL is created on the exact same spot).

Now how does this fix your problem? simple, make the occupants of the original vehicle survive if the transport is destroyed, so when you 'kill' your unit by this weapon it will be replaced and the infantry will come out, no upgrades involved.

btw, check out the pilot OCL for how to transfer veterancy aswell, oh and make sure that both the original unit and the new one have the same max energy.
Waraddict is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-03-2005, 01:16 AM   #3 (permalink)
Senior Member
 
Join Date: Feb 2004
Location: China
Posts: 356
Default

this way cann't work in my case that there are 5 upgrades for my hummer. the basic hummer could be upgraded to the battle Humvee, Avenger, Ambulance and so on.
anyway, thanks a lot.
coolfile 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
How to change weapon if infantry is in or out a vehicle SamB Generals & Zero Hour Editing 2 01-07-2008 11:31 PM
OBJECT UPGRADE VS PLAYER UPGRADE Hostile Generals & Zero Hour Editing 2 05-24-2004 05:58 AM
infantry upgrades without upgrade Generals & Zero Hour Editing 11 02-24-2004 01:44 AM
Infantry-> infantry -> vehicle? is it possible? mellr0 Red Alert 2 & Yuri's Revenge Editing 24 02-11-2004 10:44 AM
Any tut on boning a vehicle? The_Blind_One Generals & Zero Hour Editing 6 08-30-2003 01:28 PM


All times are GMT -4. The time now is 09:05 AM.


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