View Single Post
Cookies.net
Senior Member
Join Date: Jan 2011
Old 03-26-2011 , 15:09   Re: Entity Input with delay
Reply With Quote #6

try something like this

PHP Code:
stock KillEnt(entFloat:delay)
{
    
decl String:addoutput[64];
    
Format(addoutputsizeof(addoutput), "OnUser1 !self:kill::%f:1"delay);
    
SetVariantString(addoutput);
    
AcceptEntityInput(ent"AddOutput");
    
AcceptEntityInput(ent"FireUser1");

This is how you should format the output
<output name> <target name>:<input name>:<parameter>:<delay>:<max times to fire (-1 == infinite)>
this is taken from http://developer.valvesoftware.com/wiki/AddOutput
Cookies.net is offline