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);
}
}
__________________