Frictional Games Forum (read-only)
How to make knights change places. - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How to make knights change places. (/thread-16457.html)



How to make knights change places. - Jagsrs28 - 06-24-2012

I have a row of knights and I want it to where:


When I pick up a note the knights block of the area. How do I just move 1 knight?
I went to the wiki and couldn't find anything.


RE: How to make knights change places. - MaZiCUT - 06-24-2012

Ugh, i wish i could help you but i'm stuck in heavy scripting on my cs.


I can tell you some easy hints though, You need to place multiple knights and multiple script areas and set the original knight active and the other ones inactive.

Or don't listen to me at all my friend and wait until someone describes in detail Cool


RE: How to make knights change places. - Apjjm - 06-24-2012

Your best bet here (if you want actual movement) is to use sticky areas. Place one sticky area per knight, where you want the knights to stand, then use the function AttachPropToStickyArea (see wiki for syntax). You will want to have the sticky area attachment disabled initially, and also set it up so the attached props still collide. You will want to also use SetAllowStickyAreaAttachment to enable the attachment before attaching the knight. The other settings in the area is something you are going to need to have a play around with.