AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Detect entity spawned (MonsterMod) (https://forums.alliedmods.net/showthread.php?t=118185)

xbatista 02-08-2010 13:00

Detect entity spawned (MonsterMod)
 
Won't work at all, why?

PHP Code:

public plugin_precache()
{
    
RegisterHam(Ham_Spawn"func_wall""fwd_MonsterSpawn");


PHP Code:

public fwd_MonsterSpawn(ent)
{
    
server_print("spawned entity")  
    
client_print0print_chat"spawned")


I just need to detect the monster is spawned, tryied to detect it also in plugin_init, also tryied FM_Spawn, no success

Arkshine 02-08-2010 13:28

Re: Detect entity spawned (MonsterMod)
 
If it doesn't work, you would need to use Orpheu.

xbatista 02-08-2010 13:38

Re: Detect entity spawned (MonsterMod)
 
I've tryied again FM_Spawn in precache, works, but it detects only on map change ( and walls ), while monsters is spawned it won't print those messages... ?


All times are GMT -4. The time now is 07:22.

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