Raised This Month: $ Target: $400
 0% 

Solved [HELP] Detect if Map has Water on Start


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hellmonja
Senior Member
Join Date: Oct 2015
Old 06-03-2020 , 13:26   Re: [HELP] Detect if Map has Water on Start
Reply With Quote #8

pfn_spawn, interesting. So it catches the entity as it is spawned and checks if it is func_water. Yes it sounds better than looping thru all of them after they've all loaded up.

So like this?
PHP Code:
pfn_spawn(ent)
{
        new 
sz_classname[32]
        
pev(entpev_classnamesz_classnamecharmax(sz_classname));

        if(
equal(sz_classname"func_water"))
               
blahblah...

__________________
hellmonja is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode