AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with object glow (https://forums.alliedmods.net/showthread.php?t=25435)

Artemus 03-13-2006 21:59

Help with object glow
 
Hey I want this enitys to glow "func_door_rotating" and "func_pushable" in A MAP.
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fun> #include <engine> #define PLUGIN "ObejectMoverObjectGlow" #define VERSION "1.0" #define AUTHOR "Artemus" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         } public LightMovable()     {         new ent;     while(ent =  find_ent_by_class(ent,"func_door_rotating", "func_pushable"))       {         set_ent_rendering(kRenderFxGlowShell, 255, 0, 255, kRenderNormal, 25)             } }
Might some one help me to make this work.

Artemus 03-13-2006 23:23

I'm still in intro to programming class so that is far as I can get now
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <engine> public plugin_init() {     register_plugin("ObejectMoverObjectGlow", "1.0", "ArtemusOD")     register_cvar("sv_OMOGlow","1")     } public LightMovable()     {         new ent[32];     while(ent =  find_ent_by_class(ent,"func_door_rotating", "func_pushable"))       {         set_entity_visibility(kRenderFxGlowShell, 255, 0, 255, kRenderNormal, 25);             } }

VEN 03-14-2006 03:28

Put only one classname to the find_ent_by_class

Artemus 03-14-2006 16:52

Next what do i do
 
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <engine> public plugin_init() {     register_plugin("ObejectMoverObjectGlow", "1.0", "ArtemusOD")     register_cvar("lightmovable","1")     register_srvcmd("removedoors","LightMovable");     if(get_cvar_num("lightmovable")) {         set_task(1.0,"LightMovable");     } }     public LightMovable()     {         new ent = -1     while ( (ent = find_ent_by_class(ent, "func_pushable"))   != 0)     {         set_entity_visibility(ent, kRenderFxGlowShell, 255, 0, 255, kRenderNormal, 25);             } }

I need help on this error

Error: Number of arguments does not match definition on line 28

Artemus 03-14-2006 17:47

HELP
 
I got this compiled and it makes func_pushable objects and rotating doors invisible how do u make them glow
if i add this
set_entity_visibility(kRenderFxGlowShell, 255, 0, 255, kRenderNormal, 25); i get error : Number of arguments does not match definition
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <engine> public plugin_init() {     register_plugin("ObejectMoverObjectGlow", "1.0", "ArtemusOD")     register_cvar("lightmovable","1")     register_srvcmd("lightmovable","LightMovable");     if(get_cvar_num("lightmovable")) {         set_task(1.0,"LightMovable");     } }     public LightMovable()     {         new ent, ent2;         while (ent = find_ent_by_class(ent, "func_pushable"))       {         set_entity_visibility(ent, kRenderFxGlowShell);             }     while (ent2 = find_ent_by_class(ent2,"func_door_rotating"))       {         set_entity_visibility(ent2, kRenderFxGlowShell);             }     }

Artemus 03-14-2006 17:50

wait how do I set_ent_rendering it doesn't let me only set_entity_visibility


All times are GMT -4. The time now is 20:18.

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