Frictional Games Forum (read-only)
[WIP] Flawless' thread of inspiration - 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)
+--- Thread: [WIP] Flawless' thread of inspiration (/thread-29844.html)

Pages: 1 2


RE: Flawless' thread of inspiration - FlawlessHappiness - 05-04-2015

(05-04-2015, 05:41 PM)Mudbill Wrote: Doesn't
PHP Code:
void PlaceEntityAtEntity(string &in asNamestring &in asTargetEntitystring &in asTargetBodyNamebool abUseRotation); 
do the same? Or does this actually animate the entity moving towards another entity?

This animates the process Wink


RE: Flawless' thread of inspiration - A.M Team - 05-04-2015

Can you explain this script in grater detail? Confused


RE: Flawless' thread of inspiration - FlawlessHappiness - 05-04-2015

(05-04-2015, 05:49 PM)TheDoctorPoo Wrote: Can you explain this script in grater detail? Confused

I can.

In short, you specify and entity which will be moved a tiny distance per frequency.

If the frequency and the space is defined to 0.01, the object will move a distance of 0.01, each 0.01 second.
It will keep doing this, until the destination is reached.

It knows when the destination is reached, because every time it repeats, a variable is getting smaller and smaller, and at the 1/100 of a second it reaches 0 or lower, it will stop.

Then a function calls, to say that the entity has arrived.


Did that make sense?


RE: Flawless' thread of inspiration - A.M Team - 05-04-2015

ooooooooo.

Now I know. Big Grin

Well, I don't have anything to add so... yea... Tongue