Jump to content
Sign in to follow this  
[lol]clan killer bee

!alive ID buildings

Recommended Posts

Hi guys I want a building be destroyed who has a ID.

To make it active in for example in a trigger and let music play what do I need to do I have tried some but no results ?

I get all kind of things like strings arrays en ; marks.

I had this

!alive id building

This was placed the condition!

Now beaware I'm not s script kiddy !:eek:

---------- Post added at 04:30 PM ---------- Previous post was at 03:07 PM ----------

i used this code and it works

!alive truck1

Now I don't know what I need to fill in for a ID for a house I want to be destroyed.

Like ID19266 that is the id in the editor.:j:

Share this post


Link to post
Share on other sites

You need to use nearestObject in conjunction with a game logic or other object placed nearby the building whose status you wish to check. Also, I'm not sure that the alive command will work properly for buildings; you might want to do a damage check instead.

Example condition:

damage (position gameLogicName nearestObject 19266) > .95

Simply replace "gameLogicName" with the name of the game logic or object that you placed near the building, and you should be good to go.

Share this post


Link to post
Share on other sites

Alot buildings objects now you can sync/group a trigger to!

And place the code in the 'on act' field!

Share this post


Link to post
Share on other sites

Tried both doesn't seem to work.

Couldn't use the trigger as i placed the code in the act it gave a boolian thing error !

damage (position gameLogicName nearestObject 19266) > .95

Share this post


Link to post
Share on other sites

Yeah -just tried Trigger covering the object and grouped to it!

Condition= 'none' and 'not present' seems to work on objects but not destructable biuldings?

Share this post


Link to post
Share on other sites

Don't put the code I gave you into the Activation field; put it in the Condition field. It is a condition for the trigger to activate, after all. When you do that, you shouldn't have any problems provided you are placing and naming the game logic properly.

Share this post


Link to post
Share on other sites
Yeah -just tried Trigger covering the object and grouped to it!

Condition= 'none' and 'not present' seems to work on objects but not destructable biuldings?

Just to clear this up and I know it's an old post but if you want to do it by trigger alone do it this way.

Place a trigger over a building and group the trigger to the building.

Go back into the trigger and you should now see a new Item static object

Select not present

That's all there is to it apart from telling the trigger to play music, end the game ect.

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  

×