Page 1 of 1
Activated by an object ?
Posted: July 12th, 2007, 2:16 am
by Jumpy'z
Is this possible to activate a trigger with an object and not a player ??
Posted: July 12th, 2007, 2:32 am
by Lethal323
Object in what way?
Bullets...yes
grenades....no
moveing platform...dont think so

Posted: July 12th, 2007, 2:54 am
by Jumpy'z
like a script_brushmodel
Posted: July 12th, 2007, 3:13 am
by Nightmare
Yes it is possible, you can treat a brushmodel just like a user.
Like so:
Code: Select all
brushtrigger()
{
brush = getent ("brush","targetname");
trig = getent ("trigger","targetname");
while (1)
{
if (brush istouching(trig))
{
//Do Stuff Here
}
}
}
Posted: July 12th, 2007, 3:54 am
by Jumpy'z
k thx... ill try it tomorrow

Posted: July 12th, 2007, 6:23 am
by Lethal323
wOw, I learned something new today

Posted: July 12th, 2007, 11:28 am
by Drofder2004
Nightmare is correct, but I couldn't help but wondering about the reason behind this.
For your objects to ever touch, they need to be moving.
If your objects are moving, that means you have scripted them to move.
If you have scripted them to move, why not just script them to trigger when you want?