View unanswered posts | View active topics It is currently Fri Dec 27, 2024 7:57 am



Reply to topic  [ 4 posts ] 
 Lua Script Request - ACrab attached to AHuman 
Author Message
User avatar

Joined: Mon Apr 06, 2009 9:41 am
Posts: 712
Location: New York
Reply with quote
Post 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.


Mon Oct 19, 2009 1:28 am
Profile YIM
User avatar

Joined: Mon Jun 30, 2008 9:13 pm
Posts: 499
Location: Finland
Reply with quote
Post 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.


Mon Oct 19, 2009 4:55 pm
Profile
User avatar

Joined: Mon Apr 06, 2009 9:41 am
Posts: 712
Location: New York
Reply with quote
Post 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.


Mon Oct 19, 2009 7:34 pm
Profile YIM
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post 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.


Mon Oct 19, 2009 7:38 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 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.069s | 13 Queries | GZIP : Off ]