Invisible trigger_use?
Posted: February 14th, 2006, 9:18 pm
Is there a way to have a trigger_use, but so that the use icon doesn't appear when you are near it?
CoDJumper.com - For all your CoDJumping needs!
https://codjumper.com/forums/
impossible to move triggers.Pedsdude wrote:Roger that, thanks.
Also, is it possible to make a trigger a script_brushmodel? Say for example I want a moving hurt trigger...
Its your secret, why u asking peds if he dont want to let everyone in on itDrofder2004 wrote:What exavtly do you want to do? Turning on/off triggers may not be the solution.
(You may be able to use my invisible nonsolid wall method) If you dont want to let everyone in on the secret, pm/email me
Invisible Non-Solid walls is not a secret (infact I posted it on Mods online as a fix for the elevator bug [where you get stuck if you are under the moving object]) The secret Im on about is what Peds wants to do (e.g have a secret switchLuke wrote:Its your secret, why u asking peds if he dont want to let everyone in on itDrofder2004 wrote:What exavtly do you want to do? Turning on/off triggers may not be the solution.
(You may be able to use my invisible nonsolid wall method) If you dont want to let everyone in on the secret, pm/email me
Code: Select all
main()
{
thread switch1();
thread switch2();
}
switch1()
{
switch1 = getent("switch1","targetname");
trig_hurt1 = getent("trig_hurt1","targetname");
switch_status1 = 0;
trig_hurt1 thread maps\mp\_utility::tiggerOff();
while(1)
{
switch1 waittill ("trigger");
if(switch_status1 == 0)
{
trig_hurt1 thread maps\mp\_utility::triggerOn();
switch_status1 == 1;
wait 0.5;
}
else if(switch_status1 == 1)
{
trig_hurt1 thread maps\mp\_utility::triggerOff();
switch_status1 == 0;
wait 0.5;
}
}
}
switch2()
{
switch2 = getent("switch2","targetname");
trig_hurt2 = getent("trig_hurt2","targetname");
switch_status2 = 0;
trig_hurt2 thread maps\mp\_utility::tiggerOff();
while(1)
{
switch2 waittill ("trigger");
if(switch_status2 == 0)
{
trig_hurt2 thread maps\mp\_utility::triggerOn();
switch_status2 == 1;
wait 0.5;
}
else if(switch_status2 == 1)
{
trig_hurt2 thread maps\mp\_utility::triggerOff();
switch_status2 == 0;
wait 0.5;
}
}
}
maps\mp\_utility::tiggerOff();
Code: Select all
main()
{
thread switch_spawn();
thread switch_underground();
}
switch_spawn()
{
switch_spawn = getent("switch_spawn","targetname");
trig_hurt_spawn = getent("trig_hurt_spawn","targetname");
switch_status1 = 0;
trig_hurt_spawn thread maps\mp\_utility::triggerOff();
while(1)
{
switch_spawn waittill ("trigger");
if(switch_status1 == 0)
{
trig_hurt_spawn thread maps\mp\_utility::triggerOn();
switch_status1 == 1;
wait 0.5;
}
else if(switch_status1 == 1)
{
trig_hurt_spawn thread maps\mp\_utility::triggerOff();
switch_status1 == 0;
wait 0.5;
}
}
}
switch_underground()
{
switch_underground = getent("switch_underground","targetname");
trig_hurt_underground = getent("trig_hurt_underground","targetname");
switch_status2 = 0;
trig_hurt_underground thread maps\mp\_utility::triggerOff();
while(1)
{
switch_underground waittill ("trigger");
if(switch_status2 == 0)
{
trig_hurt_underground thread maps\mp\_utility::triggerOn();
switch_status2 == 1;
wait 0.5;
}
else if(switch_status2 == 1)
{
trig_hurt_underground thread maps\mp\_utility::triggerOff();
switch_status2 == 0;
wait 0.5;
}
}
}
Code: Select all
/developer 1
Code: Select all
main()
{
thread switch_spawn();
thread switch_underground();
}
switch_spawn()
{
switch_spawn = getent("switch_spawn","targetname");
trig_hurt_spawn = getent("trig_hurt_spawn","targetname");
switch_status1 = 0;
trig_hurt_spawn thread maps\mp\_utility::triggerOff();
while(1)
{
switch_spawn waittill ("trigger");
if(switch_status1 == 0)
{
trig_hurt_spawn thread maps\mp\_utility::triggerOn();
switch_status1 = 1;
wait 0.5;
}
else if(switch_status1 == 1)
{
trig_hurt_spawn thread maps\mp\_utility::triggerOff();
switch_status1 = 0;
wait 0.5;
}
}
}
switch_underground()
{
switch_underground = getent("switch_underground","targetname");
trig_hurt_underground = getent("trig_hurt_underground","targetname");
switch_status2 = 0;
trig_hurt_underground thread maps\mp\_utility::triggerOff();
while(1)
{
switch_underground waittill ("trigger");
if(switch_status2 == 0)
{
trig_hurt_underground thread maps\mp\_utility::triggerOn();
switch_status2 = 1;
wait 0.5;
}
else if(switch_status2 == 1)
{
trig_hurt_underground thread maps\mp\_utility::triggerOff();
switch_status2 = 0;
wait 0.5;
}
}
}