Frictional Games Forum (read-only)
How can i create a float from - to. - 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: How can i create a float from - to. (/thread-20417.html)



How can i create a float from - to. - tonitoni1998 - 02-20-2013

I want something to happen when the pöayer picks up something and has 12.5f - 20f oil.how can i do that?


RE: How can i create a float from - to. - MulleDK19 - 02-20-2013

SetEntityCallbackFunc for pickup.

Then just do

if (GetPlayerLampOil() >= 12.5f && GetPlayerLampOil() <= 20.0f)
{
...
}


RE: How can i create a float from - to. - tonitoni1998 - 02-20-2013

thanks for the help and the fast reply Smile