Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

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

0 Members and 1 Guest 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 »
sorta unclear what you trying to do, its best sometime to, do what I call trick the game, name one of your men westguy, make sure he will die so tigger works,, make a trigger , don’t change anything, but in condition put,  not (alive westguy)  then in effects “lower left bottom” add the sound or whatever, or a sync to the enemys waypoint, if needed!, then when westguy is dead, trigger is activated this brings up the ? not (alive westguy), that you can look! and read more on!, you have to play around a bit,,, and hey 1.46? I don’t know that it has vehicle command or not??!!?! If this don’t work PM me or msn, and I’ll walk u thought it.
Again don’t double post, everyone can see you last post , edit that! That way you don’t over ride or stomp on a new post from someone else.
If it been a while ,, then you can repost, if you get no response.
 Ok mate?  ;) schuler
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