![]() |
AddAttachedPropToProp problems - 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: AddAttachedPropToProp problems (/thread-23473.html) |
AddAttachedPropToProp problems - Damascus - 10-02-2013 I've been trying to replicate the mechanics of the elevator switch in Machine for Pigs, but am having a small problem with one of the scripts. Here's what the switch script looks like so far: PHP Code: void ElevatorDescent (string &in asEntity, int alState) My problem is with the afPosZ portion of the AddAttachedPropToProp script, which in game seems to be permanently set as thought it were at 0. When I change the X and Y floats, it moves the static lever around, but changing the Z float doesn't move it at all. While it's like this, as soon as I pull the switch into position, the static switch just appears in the middle of the elevator panel, instead of in the slot like it's supposed to. RE: AddAttachedPropToProp problems - Your Computer - 10-02-2013 http://www.frictionalgames.com/forum/thread-23378-post-265735.html#pid265735 RE: AddAttachedPropToProp problems - Apjjm - 10-02-2013 To elaborate: afPosZ is ignored and afRotZ is used for both the z position and z rotation of the prop. The good news is that this has been fixed in the update with the introduction of AttachPropToProp (as well as another bug related to AddAttachedPropToProp). RE: AddAttachedPropToProp problems - Damascus - 10-04-2013 Ah, thank you kind sirs. Works fine with the patch. |