Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attach item to enemy?
Author Message
Damascus Offline
Senior Member

Posts: 646
Joined: Mar 2012
Reputation: 29
Post: #1
Attach item to enemy?

Is there any way at all to attach an object to enemy? It can be anything really; the enemy can physically carry it, or it can hover around it, or it can drag it along with something. I've been experimenting for a while but I can't seem to get anything to work. AttachProptoProp doesn't seem to work with enemies, and ropes apparently need one static anchor point to work.

04-15-2012 06:09 AM
Find all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 4,281
Joined: Sep 2011
Reputation: 237
Post: #2
RE: Attach item to enemy?

I tried doing this to stop lookatcallback causing sanity. I tried many things but nothing worked... sorry =[
04-15-2012 06:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,475
Joined: Jul 2011
Reputation: 234
Post: #3
RE: Attach item to enemy?

Enemies don't have bodies, which are required for attaching props, so, no, you cannot attach props to enemies through scripting.

Tutorials: From Noob to Pro
04-15-2012 07:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Damascus Offline
Senior Member

Posts: 646
Joined: Mar 2012
Reputation: 29
Post: #4
RE: Attach item to enemy?

Damn. Well I wanted an enemy to run off with an item and make it a quest to get it back, and I thought I could pull it off with some inventive scripting, but it doesn't look like I can get the item to travel with the enemy.

Possibly my only other option is to have the enemy patrol a tight area where the item will later be sitting, but that sounds kind of lame.

(This post was last modified: 04-15-2012 08:00 AM by Damascus.)
04-15-2012 07:58 AM
Find all posts by this user Quote this message in a reply
Cranky Old Man Offline
Posting Freak

Posts: 922
Joined: Apr 2012
Reputation: 37
Post: #5
RE: Attach item to enemy?

You can of course do it with modelling, though: Delete the prop the monster takes, and then add it in a model animation. Ropes still attached to other objects still won't work, though.

Noob scripting tutorial: From Noob to Pro

04-15-2012 07:59 AM
Find all posts by this user Quote this message in a reply
DRedshot Offline
Senior Member

Posts: 374
Joined: Jun 2011
Reputation: 11
Post: #6
RE: Attach item to enemy?

Well you could create a scenario where player sees item, monster walks in front of item, item dissappears, monster walks away and the player gets a momento telling him to get it back.
As for attaching objects to the enemy: You cannot attach entities, but you can attach billboards. It wont look great, but the insanity effect of looking at the monster might help improve it.
Remember, due to the insanity effect, the player probably wouldn't notice tiny details like keys in a grunt's hand. It might be better just to script the item disappearing from the table when the grunt is blocking the player view.

(This post was last modified: 04-15-2012 12:23 PM by DRedshot.)
04-15-2012 12:13 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)