Raised This Month: $12 Target: $400
 3% 

Help with Creating entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 10-18-2017 , 11:40   Help with Creating entity
Reply With Quote #1

Hey guys, i've got some problems with creating entity with CreateEntityByName, for example, i'm trying to create an "env_fog_controller" but it doesnt work, here is the code:
PHP Code:
public Action:Cmd_Cre(clientargs)
{
    new 
Particle CreateEntityByName("env_fog_controller");
    
    if(
IsValidEntity(Particle))
    {
        
DispatchKeyValue(Particle"fogstart""1.0");
        
DispatchKeyValue(Particle"fogend""5000.0");
        
DispatchKeyValue(Particle"fogcolor""172 185 194");
        
        
DispatchSpawn(Particle);        
        
ActivateEntity(Particle);
    }

Facksy 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 11:39.


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