![]() |
what do i need to do... - 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: what do i need to do... (/thread-25928.html) |
what do i need to do... - Amnesiaplayer - 08-21-2014 i want that player is walking "slower" because i made something... afterp ulling a lever a wall is going up... and a music will come.. some music that it looks like it's the end and then there is outside... andthe music is long... i want that player CAN'T run... for that time... what's the script for player walk... (not run ![]() |( but it's not the end of the game ![]() RE: what do i need to do... - CarnivorousJelly - 08-21-2014 Hello there! This page may be very helpful to you in the future. But to answer your question: SetPlayerWalkSpeedMul(0.7) SetPlayerRunSpeedMul(0.4) Or you could use SetPlayerMoveSpeedMul(0.5) You can replace the numbers in the brackets with whatever you want. Higher than one is faster than normal, lower than one is slower than normal. RE: what do i need to do... - Neelke - 08-21-2014 I'm guessing you mean this? Code: void SetPlayerMoveSpeedMul(float afMul); RE: what do i need to do... - Amnesiaplayer - 08-21-2014 thanks ![]() PHP Code: void OnStart() RE: what do i need to do... - Neelke - 08-21-2014 No bracket at SetPlayerMoveSpeedMul. Also you're missing a } closing this script. Needs to be like this: Code: void MoveWall(string &in asEntity, int alState) RE: what do i need to do... - Amnesiaplayer - 08-21-2014 Thnaks ![]() ![]() ![]() |