Activated by an object ?
Moderator: Core Staff
Activated by an object ?
Is this possible to activate a trigger with an object and not a player ??
Yes it is possible, you can treat a brushmodel just like a user.
Like so:
Like so:
Code: Select all
brushtrigger()
{
brush = getent ("brush","targetname");
trig = getent ("trigger","targetname");
while (1)
{
if (brush istouching(trig))
{
//Do Stuff Here
}
}
}
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
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?
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?
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Who is online
Users browsing this forum: No registered users and 0 guests