AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Trigger an entity (https://forums.alliedmods.net/showthread.php?t=340172)

Kaner 10-30-2022 12:16

Trigger an entity
 
Hello,

Is there anyway to trigger an entity by its name (if it exists), for example, at the round starts ?

Thanks!

fysiks 10-30-2022 16:07

Re: Trigger an entity
 
Get the entity id when it's created and then use that id to execute functions with it. What entity are you trying to trigger?

Kaner 10-30-2022 19:15

Re: Trigger an entity
 
Quote:

Originally Posted by fysiks (Post 2791857)
Get the entity id when it's created and then use that id to execute functions with it. What entity are you trying to trigger?

I'm trying to trigger a func_door with the name "backdoor"
The entity belongs to the map

DJEarthQuake 10-31-2022 08:38

Re: Trigger an entity
 
Quote:

Originally Posted by Kaner (Post 2791848)
Hello,

Is there anyway to trigger an entity by its name (if it exists), for example, at the round starts ?

Thanks!

ExecuteHam

eg


All times are GMT -4. The time now is 15:38.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.