Thread
:
[L4D & L4D2] Left 4 DHooks Direct (1.146) [21-Apr-2024]
View Single Post
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
07-10-2020 , 10:55 Re: [L4D & L4D2] Left 4 DHooks Direct (1.16a) [16-Jun-2020]
#
128
Alex you can try to use "L4D_IsAnySurvivorInStartArea".
I usually use this stock above below but after a survivor leaves the saferoom, of course, after it leaves any "blocks" stop working.
Not the same thing you asked but similar.
Spoiler
/**
* Returns whether any survivor have left the safe area.
*
* @return True if any survivor have left safe area, false
* otherwise.
*/
stock bool:L4D_HasAnySurvivorLeftSafeArea()
{
new entity = L4D_GetResourceEntity();
if (entity == -1)
return false;
return bool:GetEntProp(entity, Prop_Send, "m_hasAnySurvivorLeftSafeArea", 1);
}
__________________
My Plugins
Last edited by Marttt; 09-12-2023 at
23:02
.
Marttt
View Public Profile
Send a private message to Marttt
Visit Marttt's homepage!
Find More Posts by Marttt