Jump to content
Sign in to follow this  
Shadow_Spyder

condition of presence

Recommended Posts

Ok, so i have an object on the ground, it is set to about 60% condition of presence. Now, i've got a trigger with it, and what i'd like to happen is, when the object doesn't show up, I want the trigger to do nothing, delete itself, or whatever. If the object does appear, I want the trigger to perform it's action. Anyone know how I can get this working?

I could just leave it a lone, and it basicly performs what I want, except that when the object isn't there, I get an ugly ol' black-bar error at the top left of the screen which I don't want. Thanks!

Share this post


Link to post
Share on other sites

You could simply group the object to the trigger and set its activation as "vehicle" and "present" and condition "this".Or create another trigger as above except with "Vehicle" and "NotPresent",name your first trigger and in the new triggers onactivation box put deletevehicle Mytriggername.

hope that helps.

Share this post


Link to post
Share on other sites

Well, grouping the object and trigger does not work. THe object performs the desired effect without me being in the trigger, which means the effect is for nothing since it happens at start of mission and not when I want it to. I don't really understand your second idea, could you possibly explain in baby terms for my newb self? lol

Share this post


Link to post
Share on other sites

What about 'object in thislist' on the condition part of the trig, with a timout val of 1 sec, May help you.

huh.gif

Cheers

GC

Share this post


Link to post
Share on other sites

This is a good time to use the isNil command.

Say your object is named myObject, then add this check to your trigger condition:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">!(isNil "myObject")

The most basic trigger condition would look like this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this && !(isNil "myObject")

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  

×