Jump to content
Sign in to follow this  
alexluthor

Checking for weapons

Recommended Posts

Hi guys, I wonder if you could help me with a little code.

I'm planning a mission where two CIA officers will infiltrate an enemy controlled city to talk to an informant. They will arrive in the city unarmed but will find some stashed weapons in the informants house.

The players are civilians, so the russian soldiers let them be. However, I want to place a trigger, making the civilians fair game once they're armed.

Here's what I got so far and please bear in mind that my skills are limited : )

trigger condition: (Checking for specific weapons)

spy1 hasWeapon "M110_NVG_EP1" or spy1 hasWeapon "NVGoggles" or spy1 hasWeapon "MakarovSD";

Trigger initialization:

spy1 addRating -10000000

Problem 1 - How can I check for all weapons in a single line instead of having to list them all individually.

Problem 2 - I had to place two different triggers, checking individually for each player. Is it possible to add the other player's conditions so that it can be activated in the same trigger?

well, that's it. Thanks in advance for any help.

Share this post


Link to post
Share on other sites

I haven't had a chance to re-review my own example here, but this mission I threw together might help you. It checks to see if the current weapon is NOT equal to 'nothing', therefore ANY weapon being present will set it off.

http://www.megaupload.com/?d=PESC8HFU

Just replace the 'on act' field with your add rating, and remove the 'on deactivation' field.

Hope this helps!

- HateDread.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×