Frictional Games Forum (read-only)
[SCRIPT] Get entity speed - 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] Get entity speed (/thread-20217.html)

Pages: 1 2


RE: Get entity speed - MulleDK19 - 02-08-2013

I'd just use two areas, in front of whatever you'd need to smash, then measure the time it took to move the rock from one area to the other. Then you can measure the speed.

Or just one area around whatever you'd need to hit. Then use the thing you need to hit as the second "area".


RE: Get entity speed - FlawlessHappiness - 02-08-2013

(02-08-2013, 05:31 PM)MulleDK19 Wrote: Or just one area around whatever you'd need to hit. Then use the thing you need to hit as the second "area".

It would probably not collide with the second entity would it?


RE: Get entity speed - MulleDK19 - 02-08-2013

This is my test:
http://treesoft.dk/misc/SpeedTest.zip

Works pretty well. The speed doesn't need to be measured exactly. This'll work for most cases.


RE: Get entity speed - FlawlessHappiness - 02-08-2013

(02-08-2013, 07:11 PM)MulleDK19 Wrote: This is my test:
http://treesoft.dk/misc/SpeedTest.zip

Works pretty well. The speed doesn't need to be measured exactly. This'll work for most cases.

I like it! Wink Thanks.

You really had fun making that map huh?

I laughed a little bit when the shiny light came from the chest...