Page 1 of 1
Changing ODF ingame
Posted: Mon Dec 29, 2008 8:19 pm
by trainmaster611
I remember a few eons ago, someone posted a topic about 'pickupable' weapons. In that thread, Zerted said it would be possible to change the ODF ingame, but it would change all the units that share that ODF.
Now I'm interested in making a unit's ODF properties change ingame (regardless of the bug) for a map I'm working on. Would anyone know how to do that?
Re: Changing ODF ingame
Posted: Mon Dec 29, 2008 8:57 pm
by Maveritchell
You've got to tell us what you want to do. You can change some things, and you can't change others.
Re: Changing ODF ingame
Posted: Mon Dec 29, 2008 9:07 pm
by trainmaster611
I was going to change the weapon.
Re: Changing ODF ingame
Posted: Mon Dec 29, 2008 9:12 pm
by Maveritchell
trainmaster611 wrote:I was going to change the weapon.
More specific. Melee weapons can't be changed, everything else can be changed using SetClassProperty (example below),
provided it replaces an already-existing weapon (I did this in Spira: Besaid, if you want an example of how it would work).
Ex.
Code: Select all
SetClassProperty("all_inf_unit", "WeaponName1", "all_weap_inf_weapon")
SetClassProperty("all_inf_unit", "WeaponAmmo1", "5")
Re: Changing ODF ingame
Posted: Tue Dec 30, 2008 12:26 am
by [RDH]Zerted
Changing most weapon properties causes crashes for other players in MP games.