Raised This Month: $ Target: $400
 0% 

set_task with B flag - replace with entity think API?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 09-28-2012 , 06:52   Re: set_task with B flag - replace with entity think API?
Reply With Quote #2

Something like that :

- Main Plugin -

PHP Code:
public plugin_init( )
{
    new 
entity create_entity"info_target" );
    
entity_set_classnameentityEV_SZ_classname"func_task" );
    
register_think"func_task""Task__Think" );
    
entity_set_floatentityEV_FL_nextthinkget_gametime( ) + 0.1 );
}

public 
Task__Thinkentity )
{
    
entity_set_floatentityEV_FL_nextthinkget_gametime( ) + 0.1 );

- Others -

PHP Code:
public plugin_init( )
{
    
register_think"func_task""Task__Think" );
}

public 
Task__Think( )
{
    
// ...

__________________
micapat 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 08:17.


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