Raised This Month: $32 Target: $400
 8% 

Solved [TF2] Problem with info_particle_system


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 07-25-2018 , 06:43   [TF2] Problem with info_particle_system
Reply With Quote #1

Hey guys, I got problem with this entity, the particle doesnt show in-game:
Code:
{
	float pos[3];
	GetEntPropVector(client, Prop_Send, "m_vecOrigin", pos);
	int ent = CreateEntityByName("info_particle_system");
	DispatchKeyValue(ent, "angles", "-90 0 0");
	DispatchKeyValue(ent, "effect_name", "ExplosionCore_buildings");
	DispatchSpawn(ent);
	TeleportEntity(ent, pos, NULL_VECTOR, NULL_VECTOR);
	AcceptEntityInput(ent, "Start");
}
I dont see anything wrong here, someone can help?
__________________
My Steam I take private requests if related with TF2
My Plugins

Last edited by Facksy; 07-25-2018 at 08:20. Reason: Solved
Facksy is offline
Dr.Doctor
AlliedModders Donor
Join Date: Feb 2017
Location: Hong Kong
Old 07-25-2018 , 08:09   Re: [TF2] Problem with info_particle_system
Reply With Quote #2

Try add
PHP Code:
ActivateEntity(ent); 
Like this
PHP Code:
{
    
float pos[3];
    
GetEntPropVector(clientProp_Send"m_vecOrigin"pos);
    
int ent CreateEntityByName("info_particle_system");
    
DispatchKeyValue(ent"angles""-90 0 0");
    
DispatchKeyValue(ent"effect_name""ExplosionCore_buildings");
    
DispatchSpawn(ent);
    
TeleportEntity(entposNULL_VECTORNULL_VECTOR);
    
ActivateEntity(ent);
    
AcceptEntityInput(ent"Start");

__________________
Dr.Doctor is offline
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 07-25-2018 , 08:20   Re: [TF2] Problem with info_particle_system
Reply With Quote #3

Thanks <3
__________________
My Steam I take private requests if related with TF2
My Plugins
Facksy is offline
Reply



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 21:45.


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