View unanswered posts | View active topics It is currently Thu Dec 26, 2024 6:20 pm



Reply to topic  [ 5 posts ] 
 Make an actor drop it's current held device 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Make an actor drop it's current held device
Is it even possible?


Sun May 22, 2011 8:23 am
Profile
User avatar

Joined: Sat Feb 26, 2011 10:29 am
Posts: 163
Reply with quote
Post 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


Sun May 22, 2011 9:32 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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.


Sun May 22, 2011 8:12 pm
Profile
User avatar

Joined: Sat Feb 26, 2011 10:29 am
Posts: 163
Reply with quote
Post 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.


Sun May 22, 2011 8:31 pm
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post 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.


Sun May 22, 2011 9:02 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.511s | 13 Queries | GZIP : Off ]