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
2 issues
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: 2 issues

SanityGain_Color = "0.3 0.3 0.5 1"

This is the default. You should stick to the same format. In this case it's an RGBA format with values between 0 and 1. So pure red would be "1 0 0 1".

As for your second request, you'd probably need something like a looping timer which checks the player's current sanity and applies the damage if it's 0.

PHP Code: (Select All)
void Timer(string &in asTimer)
{
    if(GetPlayerSanity() <= 0.0f)
    {
        GivePlayerDamage(20.0f);
        GivePlayerSanity(1.0f);
    }
    AddTimer("loop"1.0f"Timer");


02-03-2019, 04:08 AM
Find


Messages In This Thread
2 issues - by RaXZerGamingZ - 02-01-2019, 07:39 PM
RE: 2 issues - by Mudbill - 02-03-2019, 04:08 AM
RE: 2 issues - by Darkfire - 02-03-2019, 06:20 PM
RE: 2 issues - by RaXZerGamingZ - 02-13-2019, 12:40 AM
RE: 2 issues - by Romulator - 02-13-2019, 11:51 AM
RE: 2 issues - by RaXZerGamingZ - 02-16-2019, 02:41 PM



Users browsing this thread: 1 Guest(s)