Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sticky Areas
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#1
Sticky Areas

I was wondering how do you use these.(I don't mean what are they for)

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
08-16-2011, 07:44 PM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: Sticky Areas

They're tricky little blighters, I say. If you just place one in your map, every single item you pass through it will stick to it. To avoid this, create a function and call it under the area's AttachFunction field. In this function, check to make sure it is the appropriate object you want sticky'd and then use SetAllowStickyAreaAttachment(bool bAllow); to allow it or reject it.

Positioning can be a hassle too, but that's just testing and tweaking. Other than that you shouldn't encounter any issues with them. All the other options under the Area tab are pretty straightforward. Good luck Smile

You can also script the sticky attachment but I haven't explored that method very much.

(This post was last modified: 08-16-2011, 08:25 PM by palistov.)
08-16-2011, 08:23 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#3
RE: Sticky Areas

I tried to use them many times, though I couldn't have a grasp on this area. So I tried some workarounds.
Though, the animation where entity gets out from player's hand and goes to its position, there is no workaround for this.

nemesis567 has reached their private message quota so your message could not be sent.

08-16-2011, 08:27 PM
Website Find
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#4
RE: Sticky Areas

It's been a pain in the ass for me to make it work for starters, even more because the gun I've made is overscaled so I can't see the actual one using the sticky area mesh function. I'll now try what palistov recommended. THanks for your help.

"nemesis567 has erased a few private messages."

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
(This post was last modified: 08-16-2011, 08:40 PM by nemesis567.)
08-16-2011, 08:40 PM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#5
RE: Sticky Areas

Stickyareas can be used for loads of useful things. By default they only allow one object (which matches the name criteria - see below) to attach to them at a time, but you should be able to attach multiple objects through scripting. The ability to tell the sticky-area to rotate objects but not move them (or vice-versa) is extremely useful in producing "secret" doors, as you don't need to use a separate specialised entity (though the entity may have to have a main physics body defined in it's properties), but instead just activate the area / allow attachment and let the area rotate/move the prop for you.

Use is as simple as defining the attachable object name (or part of the object name - the game does partial string matching to determine if an object is allowed to attach, for example if your object was called "bookcase_1" and the area attached objects with "ok" in them, "bookcase_1" would be attached), and tweaking the parameters until it looks nice. The two function callback settings also have uses too, for example if you want to know if the player has pulled something out of a socket.
(This post was last modified: 08-17-2011, 02:19 AM by Apjjm.)
08-17-2011, 02:12 AM
Find
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#6
RE: Sticky Areas

Thanks a lot Apjjm, that name thing looks pretty damn usefull.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
08-17-2011, 01:11 PM
Find




Users browsing this thread: 1 Guest(s)