Jump to content
Sign in to follow this  
kiptanoi

Trigger house (ID)

Recommended Posts

I dont know this....

But how can I do a trigger that check if a example house is destroyed?

The house got an ID and that is somerhing that is with the map.

So how does a trigger look like with ID's and thats are looking for if a house is destroyed or not?

Thanks

Share this post


Link to post
Share on other sites

Little example

1.) Put a game logic an write in the init line:

ID161790=position this nearestObject 161790

2.) Put a trigger with the condition:

getDammage ID161790 > 0.5

In activation:

ID161790 setDamage 1; hint "The house is history";

The ID161790 you've to change with real ID from the house.

Share this post


Link to post
Share on other sites

Wow, this is helpful for many things like towers, runways, etc. Thanks.

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  

×