Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Determine if player corpse is burned

Here you can find ScriptAPI suggestions implemented in the game.
Forum rules
By using the forum you agree to the following rules.
Locked
NearHuscarl
Superfighter
Superfighter
Posts: 89
Joined: Thu Feb 07, 2019 4:36 am

Determine if player corpse is burned

Post by NearHuscarl » Sat Feb 23, 2019 5:37 pm

I am writing a script to convert infected players into zombies after dying only if the corpses are not burned yet. Currently there is only IPlayer.IsBurning but only if player is CURRENTLY burning which are not necessarily burning at the time the corpse turn into zombie. Something like IPlayer.IsBurnedCorpse?
1 x
Image

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1884
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 31

Post by Gurt » Sat Feb 23, 2019 7:47 pm

Good suggestion, adding it in the next update after v.1.1.1.
ScriptAPI: Added IPlayer.IsBurnedCorpse to see if the corpse is burned.
ScriptAPI: Added IPlayer.IsBurningInferno to see if a player is a burning inferno (burning rank 2).
3 x
Gurt

Locked