Data Realms Fan Forums
http://45.55.195.193/

Lua Script Request - ACrab attached to AHuman
http://45.55.195.193/viewtopic.php?f=73&t=16887
Page 1 of 1

Author:  Rawtoast [ Mon Oct 19, 2009 1:28 am ]
Post subject:  Lua Script Request - ACrab attached to AHuman

I've been searching a good amount, both for posts with info and mods to cannibalize, but I can't find any lua scripts for attaching an ACrab to an AHuman. Basically, I want a turret on an actor's head. Been trying to use a drop ship turret script and only just found out why that doesn't work.

Thanks

Edit: So I've been working on this for a solid 3 hours now and I've got some turrets attached to the torso which instantly fire upon and destroy the actor. Technically, this is achieving my original goals, so to restate what I'd like:

When the player clicks, an HDFirearm should shoot from an AHuman head, in the direction which the head is pointing.

Author:  piipu [ Mon Oct 19, 2009 4:55 pm ]
Post subject:  Re: Lua Script Request - ACrab attached to AHuman

The mechwarrior mod has an excellent *cough* lua script for attaching turrets. Just remove the bits about heat, and all you need to modify is on the first few lines.

Author:  Rawtoast [ Mon Oct 19, 2009 7:34 pm ]
Post subject:  Re: Lua Script Request - ACrab attached to AHuman

Turns out I don't actually need this.

What I actually require is a script to attach Aemitters to the head of an actor which will emit when the player clicks.

Author:  CrazyMLC [ Mon Oct 19, 2009 7:38 pm ]
Post subject:  Re: Lua Script Request - ACrab attached to AHuman

Lua doesn't apply to attachables. (The emitter in this case.)
You'll need the code to attach an emitter to the head (I'm interested in how to do that as well) and then just have code on it so it emits when the player clicks.

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