Home   Help Search Login Register  

Author Topic: Trigger something when I'm the only person?  (Read 1435 times)

0 Members and 2 Guests are viewing this topic.

Offline Chrispy

  • Members
  • *
  • You never saw me! ;)
    • Delta Zero
Trigger something when I'm the only person?
« on: 28 Sep 2007, 01:20:30 »
Again, I need help with something in my mission.

I'm in a friendly base, with my allies. And basically East are going to attack any moment. I need to know if there's such a command to make it so that if I'm the only West guy in the trigger, something happens (like a sound playing).

I've looked into the CMDREF but no luck.

Any help is very appreciated. Thanks.

Chris :)
Need proof-reading for anything? Need a banner for your upcoming mod? Need a pic for your mission? Hit me up with a message. I have a bit of knowledge in Photoshop and formal/military writing.
Be sure to provide sufficient details when posting what you want requested. Thanks guys!

Offline Bruce Pech

  • Members
  • *
Re: Trigger something when I'm the only person?
« Reply #1 on: 28 Sep 2007, 04:45:04 »
Choose "Groups" in the editor menu and connect your character to the trigger with a group line. (You don't have to put "west" or the character's name in the trigger's activation field; once the trigger and character are connected; the editor will automatically set activation to "vehicle" -- meaning your character and only your character.)

b

Offline Chrispy

  • Members
  • *
  • You never saw me! ;)
    • Delta Zero
Re: Trigger something when I'm the only person?
« Reply #2 on: 28 Sep 2007, 05:13:51 »
Thanks man. Will try it out later on today. Didn't know you could link a player to a trigger via that way. :)

Chris :)
Need proof-reading for anything? Need a banner for your upcoming mod? Need a pic for your mission? Hit me up with a message. I have a bit of knowledge in Photoshop and formal/military writing.
Be sure to provide sufficient details when posting what you want requested. Thanks guys!

Offline Chrispy

  • Members
  • *
  • You never saw me! ;)
    • Delta Zero
Re: Trigger something when I'm the only person?
« Reply #3 on: 28 Sep 2007, 08:21:42 »
Umm... it didn't work mate. I had the player connected to a trigger (I had West in the activation), and when I went to the trigger, the sound file played.

Remember, in the trigger, I have about ten West guys or so. I want it so that when I'm in that trigger, and those ten guys are all dead, and I'm the only West guy left in the trigger, a sound file plays or whatever.

Thanks for trying to help man.

Chris :)
« Last Edit: 28 Sep 2007, 08:24:15 by Chris »
Need proof-reading for anything? Need a banner for your upcoming mod? Need a pic for your mission? Hit me up with a message. I have a bit of knowledge in Photoshop and formal/military writing.
Be sure to provide sufficient details when posting what you want requested. Thanks guys!

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Trigger something when I'm the only person?
« Reply #4 on: 28 Sep 2007, 10:56:00 »
Chris, don't double post.
If you have something to add to your post after a short period of time modify it instead of replying to yourself..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline schuler

  • Contributing Member
  • **
Re: Trigger something when I'm the only person?
« Reply #5 on: 28 Sep 2007, 15:03:13 »
Semper Fi

Offline dr. seltsam

  • Members
  • *
Re: Trigger something when I'm the only person?
« Reply #6 on: 28 Sep 2007, 19:53:57 »
hi,

make a trigger ... triggered by west. Write under condition:

Code: [Select]
count thislist == 1 && vehicle player in thislist

This will trigger your desired condition immediately. And, it will trigger a player even if he is sitting in a vehicle or not.

I would find it better to delay the trigger a bit:
Set the trigger timer to "Timeout", write into all 3 timing boxes 10,10,10.
This version will trigger only if your condition stays for at least 10sec, but not if another westunit is running into the trigger during the 10sec.

If you wanna use the trigger for MP, i think it will work too. But it is always better to declare the unit that shall meet the condition exactly, by giving it a name like (for example): soldier1

The trigger condition then is:

Code: [Select]
count thislist == 1 && vehicle soldier1 in thislist


Hope, it will help you...  :)  :)


Offline Chrispy

  • Members
  • *
  • You never saw me! ;)
    • Delta Zero
Re: Trigger something when I'm the only person?
« Reply #7 on: 28 Sep 2007, 22:07:25 »
Thanks schuler and dr. seltsam! I will try this out later on today. Awesome. :good:

BTW sorry for double-posting. It's just that I have a "different" way of how I post. If I post something and I want to add to it, I do edit it. But usually hours later after I made the original post, I make a totally new reply. I only edit it if it's not too long after I made the original post... I can adjust if you want I guess... :D

Chris :)
Need proof-reading for anything? Need a banner for your upcoming mod? Need a pic for your mission? Hit me up with a message. I have a bit of knowledge in Photoshop and formal/military writing.
Be sure to provide sufficient details when posting what you want requested. Thanks guys!

Offline schuler

  • Contributing Member
  • **
Re: Trigger something when I'm the only person?
« Reply #8 on: 28 Sep 2007, 22:26:38 »
Chris ,, did you get my PM about a pic for a mission?
Semper Fi