AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ... (https://forums.alliedmods.net/showthread.php?t=110364)

hectorz0r 11-28-2009 22:54

...
 
...

Zombiezzz 11-28-2009 23:09

Re: detecting hostages
 
o.O

tuty 11-29-2009 03:25

Re: detecting hostages
 
PHP Code:

if( find_ent_by_classFM_NULLENT"hostage_entity" ) || find_ent_by_classFM_NULLENT"monster_scientist" ) )
{



Arkshine 11-29-2009 04:32

Re: detecting hostages
 
Quote:

Originally Posted by hectorz0r (Post 1001607)
title says enough.

No, not enough there are severals ways to detect an hostage and it depends what you want to do and the context. So provide more informations on what you want to do.

hectorz0r 11-29-2009 11:50

Re: detecting hostages
 
...

Arkshine 11-29-2009 13:04

Re: detecting hostages
 
It doesn't help what you say.

You want to kill them how ? using a command ? By aiming them ? Once we know how you want to kill them, it will be easy to find the proper solution.

hectorz0r 11-29-2009 13:23

Re: detecting hostages
 
...

xPaw 11-29-2009 13:26

Re: detecting hostages
 
Should work

Code:
public RoundStart( ) {     new iEntity = create_entity( "trigger_hurt" );     if( !iEntity )         return;         DispatchKeyValue( iEntity, "dmg", "200" );     DispatchSpawn( iEntity );         new iHostage = -1;         while( ( iHostage = find_ent_by_class( iHostage, "hostage_entity" ) ) > 0 )         fake_touch( iEntity, iHostage );         remove_entity( iEntity ); }

Arkshine 11-29-2009 13:35

Re: detecting hostages
 
Quote:

Originally Posted by hectorz0r (Post 1002155)
Insant kill them at roundstart.

The puspose is to see them dead or you just want see hostages at all on the maps ? Because if second, the best way is simply to remove these entities at map start.

hectorz0r 11-29-2009 13:35

Re: detecting hostages
 
...


All times are GMT -4. The time now is 13:39.

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