Can I activate the entity through the console? For example i have a laserbeam called "laser". Can I turn it on through the console?
I/O through console
Posted Oct 28, 2014
Registered users don't see ads! Register now!
Posted Oct 28, 2014
Replied
20 minutes
later
Look at the "ent_fire" console command, which is probably the most useful in the game. The syntax follows the form "ent_fire targetname input params". In your example "ent_fire laser turnOn" will enable the laser. You can also use the spacial targetname "!picker" to refer to the first entity under the player's crosshair, or the thing you're holding. If you bind "ent_fire !picker use" to something, whenever you trigger it it'll simulate pressing "e" or interacting with it. This lets you press pedestal buttons from far away, or grab cubes. (They can float quite a long distance to reach your hand!)
Posted Oct 28, 2014
Replied
1 hour
later
Got it, thanks!