Page 1 of 1

Use the force to drop, steal or pick up a weapon?

Posted: Tue Mar 18, 2008 5:08 pm
by woner11
I think the answer is no, but just to make sure, you can't have someone drop a weapon, steal a weapon or use the force to pick up a weapon right?

Re: Quick Question

Posted: Tue Mar 18, 2008 5:14 pm
by Maveritchell
No-ish. You can fudge the appearance of those - maybe. Your question can be better answered if you put it in actual context instead of just tiptoeing around an idea.

Re: Quick Question

Posted: Tue Mar 18, 2008 5:18 pm
by trainmaster611
I don't know if I'm going in the right direction with answer you with this.

Pickupable weapons are possible. But when a unit picks up a weapon, it changes his ODF along with anyone else of that unit class.

So if an engineer picksup SuperGigantoNormous Gun, all the other engineers suddenly get SuperGigantoNormous Gun also even though they didn't pick it up.

Re: Quick Question

Posted: Tue Mar 18, 2008 5:52 pm
by Maveritchell
woner11 wrote:@Mav- Ok here's the senario :? You take darth vader up to fight han and take the blaster out of his hand or throw it to the floor.
Not possible unless you plan on doing some serious animationwork and scripting, and not worth it in any case.

Re: Quick Question

Posted: Tue Mar 18, 2008 8:36 pm
by [RDH]Zerted
trainmaster611 wrote:Pickupable weapons are possible. But when a unit picks up a weapon, it changes his ODF along with anyone else of that unit class.
Use SetClassProperty() on the unit's class to mess with the weapon ODF values. If you don't know when to use it, reread the scripting documentation. All you need is to get a reference to the player you want to change.

Note: changing weapon stats may or may not cause crashes when used online with other human players.

Re: Quick Question

Posted: Tue Mar 18, 2008 9:02 pm
by woner11
Thanks a bunch!