View unanswered posts | View active topics It is currently Thu Dec 26, 2024 3:46 am



Reply to topic  [ 5 posts ] 
 Adding a device to an actor's inventory using lua. 
Author Message
User avatar

Joined: Fri May 16, 2008 11:12 pm
Posts: 471
Reply with quote
Post Adding a device to an actor's inventory using lua.
Is it possible to do that in game? A bit of lua that gives the controlled actor the specified device?


Mon Dec 29, 2008 2:18 am
Profile
User avatar

Joined: Thu Jul 10, 2008 6:23 pm
Posts: 301
Location: Lurking somewhere around here...
Reply with quote
Post Re: Adding a device to an actor's inventory using lua.
Code:
A = ActivityMan:GetActivity():GetControlledActor(0); load = CreateHDFirearm("<Firearm>"); A:AddInventoryItem(load);

Enjoy!


Mon Dec 29, 2008 3:09 am
Profile
User avatar

Joined: Fri May 16, 2008 11:12 pm
Posts: 471
Reply with quote
Post Re: Adding a device to an actor's inventory using lua.
Thank you good sir! With this, I shall add a lawnmower to the Body Ladder guy's invntory and own some zombies good. :twisted:


Tue Dec 30, 2008 4:19 pm
Profile
User avatar

Joined: Tue Jul 03, 2007 12:33 am
Posts: 1275
Location: Elsewhere.
Reply with quote
Post Re: Adding a device to an actor's inventory using lua.
Brainwashed wrote:
Thank you good sir! With this, I shall add a lawnmower to the Body Ladder guy's invntory and own some zombies good. :twisted:

O_O
AWESOME!


Tue Jan 20, 2009 3:33 am
Profile
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post Re: Adding a device to an actor's inventory using lua.
Winterous wrote:
Brainwashed wrote:
Thank you good sir! With this, I shall add a lawnmower to the Body Ladder guy's invntory and own some zombies good. :twisted:

O_O
AWESOME!

http://www.youtube.com/watch?v=NBvfGIlk_n4
I'll just leave this here. Warning: blood/gore


Sun Jan 25, 2009 3:49 am
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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.042s | 13 Queries | GZIP : Off ]