I/O through console
Quote from GameBurger on October 28, 2014, 2:26 amCan I activate the entity through the console? For example i have a laserbeam called "laser". Can I turn it on through the console?
Can I activate the entity through the console? For example i have a laserbeam called "laser". Can I turn it on through the console?
Quote from TeamSpen210 on October 28, 2014, 2:47 amLook 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!)
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!)
[spoiler]- BEE2 Addons | (BEE2)
- Hammer Addons
Maps:
- Crushed Gel
- Gel is Not Always Helpful[/spoiler]
Quote from GameBurger on October 28, 2014, 3:53 amGot it, thanks!
Got it, thanks!