Data Realms Fan Forums
http://45.55.195.193/

Make an actor drop it's current held device
http://45.55.195.193/viewtopic.php?f=73&t=23888
Page 1 of 1

Author:  Asklar [ Sun May 22, 2011 8:23 am ]
Post subject:  Make an actor drop it's current held device

Is it even possible?

Author:  Xery [ Sun May 22, 2011 9:32 am ]
Post subject:  Re: Make an actor drop it's current held device

self.target:GetController():SetState(20, true);
20 = WEAPON_DROP

or more powerful(?)

if not actor:IsInventoryEmpty() then
 actor:DropAllInventory();
end

Author:  Asklar [ Sun May 22, 2011 8:12 pm ]
Post subject:  Re: Make an actor drop it's current held device

Where do you get that much info. on lua? I'll try it and come with results. Thanks again Xery.

Author:  Xery [ Sun May 22, 2011 8:31 pm ]
Post subject:  Re: Make an actor drop it's current held device

http://wiki.datarealms.com/index.php/LuaDocs/Index
http://wiki.datarealms.com/index.php/Li ... _functions
There're some new functions of B25 included. I really hope the wiki not ruined by ADs.

viewtopic.php?f=73&t=17361

Older offline version, helps me a lot.

Author:  Lizardheim [ Sun May 22, 2011 9:02 pm ]
Post subject:  Re: Make an actor drop it's current held device

You know that, with a wiki, you can just restore an older version of an article?
Vandalism is easy to correct.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/