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

Help with Creating entity


Post New Thread Reply   
 
Thread Tools Display Modes
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 10-19-2017 , 13:54   Re: Help with Creating entity
Reply With Quote #11

Thats strange, many entities works, but not this "env_fog_controller"
Facksy is offline
Halt
Senior Member
Join Date: Jan 2015
Location: Black Mesa
Old 10-19-2017 , 14:32   Re: Help with Creating entity
Reply With Quote #12

If the map you're trying to use this on already has a fog controller then you need to insure the one you create has the master flag set.

Halt is offline
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 10-19-2017 , 16:26   Re: Help with Creating entity
Reply With Quote #13

How can I modify this flag in the script?
Facksy is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-19-2017 , 18:20   Re: Help with Creating entity
Reply With Quote #14

Quote:
Originally Posted by Facksy View Post
How can I modify this flag in the script?
From what I can tell by looking at another thread:

Code:
DispatchKeyValue(Particle, "spawnflags", "1");
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-19-2017 at 18:21.
Powerlord is offline
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 10-20-2017 , 11:41   Re: Help with Creating entity
Reply With Quote #15

Founded this in the thread and it works
Code:
for (new i = 1; i <= MaxClients; i++)
{
    if (IsClientInGame(i)) {
        SetVariantString("MyFog");
        AcceptEntityInput(i, "SetFogController");
    }
}
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 10:54.


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