Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i create a float from - to.
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#1
How can i create a float from - to.

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

When you are looking for someone, to do the scripting for your Custom Story, ask me!
02-20-2013, 02:15 PM
Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#2
RE: How can i create a float from - to.

SetEntityCallbackFunc for pickup.

Then just do

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

[Image: 16455.png]
02-20-2013, 02:20 PM
Find
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#3
RE: How can i create a float from - to.

thanks for the help and the fast reply Smile

When you are looking for someone, to do the scripting for your Custom Story, ask me!
02-20-2013, 05:05 PM
Find




Users browsing this thread: 1 Guest(s)