Half-Life: Alyx

Half-Life: Alyx

Expand the world of Half-Life: Alyx
Browse the Half-Life: Alyx Workshop to find the best new addons created by the community, or install the free tools yourself and start making your own Half-Life: Alyx content.
Learn More
How to make some items(such as cfence) take damage by enemy(such as antlion) and after take some damages,cfence will be power down?
How to make some items(such as cfence) take damage by enemy(such as antlion) and after take some damages,cfence will power down?

which entity can make it happen?Waiting for some help!
Last edited by 小白的逆袭; 18 Dec, 2022 @ 10:18am
< >
Showing 1-4 of 4 comments
Schranzi 18 Dec, 2022 @ 11:28am 
I don't quite understand what you want to do.

Should an Antilion run into the fence , so that it shuts down a fence that hurts the player before it ? Or what exactly do you want to do there ?
小白的逆袭 1 18 Dec, 2022 @ 7:56pm 
Originally posted by Schranzi:
I don't quite understand what you want to do.

Should an Antilion run into the fence , so that it shuts down a fence that hurts the player before it ? Or what exactly do you want to do there ?

Thank you for asking.What I want first the fence is power on and antlions cant get through it,then antlion will keep hitting the fence,after getting some damage,the fence will be power down then antlion can get through.

Can any entity make it happen? If other similar function can work will be fine.
Schranzi 19 Dec, 2022 @ 3:26am 
I understand what you mean, but I've never tried this myself but ...

I would do it that the Antilion pratrols and run again and again to the fence. Each time Antilion X touches the fence (trigger), then a number is added to a counter (Math _ Counter). If then sum X is reached, then the fence switches off.

But then I would also make it that the player can not shoot through the fence (until the fence goes out). And you could use the ai_relationship entity too for this until the Fence goes out and the Antilien pass the Trigger.

But that is just an Idea. Like i said never tried.
Last edited by Schranzi; 19 Dec, 2022 @ 3:34am
小白的逆袭 1 19 Dec, 2022 @ 5:55am 
Originally posted by Schranzi:
I understand what you mean, but I've never tried this myself but ...

I would do it that the Antilion pratrols and run again and again to the fence. Each time Antilion X touches the fence (trigger), then a number is added to a counter (Math _ Counter). If then sum X is reached, then the fence switches off.

But then I would also make it that the player can not shoot through the fence (until the fence goes out). And you could use the ai_relationship entity too for this until the Fence goes out and the Antilien pass the Trigger.

But that is just an Idea. Like i said never tried.

Much appreciated! The method you told really help me a lot.

Thank you very much.
< >
Showing 1-4 of 4 comments
Per page: 1530 50