[SCRIPT] Simulate the player being dragged ? - 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: [SCRIPT] Simulate the player being dragged ? (/thread-24783.html) Pages:
1
2
|
Simulate the player being dragged ? - lothabread - 03-08-2014 Well as you can all probably tell by the title of the thread. I'm in need of a script that would make it look and sound as if the player was being dragged by an enemy, but I've not the slightest clue of how to go about this or if its even really possible. Any input would be greatly appreciated ^^ RE: Simulate the player being dragged ? - Neelke - 03-08-2014 This might be something to start off with. Code: void OnStart() But sometimes, try checking through all the scripts yourselves. You learn quicker RE: Simulate the player being dragged ? - Deadon - 03-08-2014 Also, for a better sense of being dragged (that most don't seem to get/notice) is that it's better to pulse (listen to the drag noise) than to keep the same speed. RE: Simulate the player being dragged ? - Neelke - 03-08-2014 Well Deadon, I used a sound which fitted this perfectly, but I'm certain he doesn't have it. Unless he got the conversion mod The Fugitive 2. PlayGuiSound("31_drag.snt", 1.0f); RE: Simulate the player being dragged ? - lothabread - 03-23-2014 whats the best configuration to have the players head on the floor ? this is what i have FadePlayerRollTo(-45, 0.8, 8); RE: Simulate the player being dragged ? - Romulator - 03-23-2014 Didn't test this (rather stole it from the wiki's wake up tutorial), but it might also help: Code: FadePlayerRollTo(50, 220, 220); // Simulate being on the floor Since you have FadePlayerRollTo, you are heading in the right direction (no pun intended) RE: Simulate the player being dragged ? - lothabread - 03-24-2014 Well i want the player to start off in a cage, have an engineer come "open" it and then "drag" the player around a corner, but im at a standstill Spoiler below!
RE: Simulate the player being dragged ? - Neelke - 03-24-2014 Code: void Drag(string &in asTimer) Marked with () what was wrong. The timer aint named like that. This below is correct. Code: void Drag(string &in asTimer) RE: Simulate the player being dragged ? - lothabread - 03-25-2014 okay this is gonna sound kinda dumb, but how do i get the player to look straight up at the cieling ? is it FadePlayerRollTo or MovePlayerHeadPos ? RE: Simulate the player being dragged ? - Romulator - 03-25-2014 I think you're better to just place a ScriptArea above you, and; PHP Code: void StartPlayerLookAt(string& asEntityName, float afSpeedMul, float afMaxSpeed, string& asAtTargetCallback); asEntityName - the entity to look at afSpeedMul - how fast should the player look at the entity afMaxSpeed - maximum speed allowed asAtTargetCallback - function to call when player looks at target You will have to declare a StopPlayerLookAt() at some point if you use this |