Talk:Half-Life: Alyx Workshop Tools/Lua Scripting/Hello Gordon

From Valve Developer Community
Jump to: navigation, search

Factual errors

This article implies that the RunScriptCode input will execute the entity script attached to an entity. The script already executes automatically when the entity spawns. RunScriptCode will execute the string supplied as its value as code, so firing it without a value does nothing. Rectus (talk) 13:45, 24 May 2020 (UTC)

--> this has been addressed by changing to CallScriptFunction McNutty (talk) 19:48, 27 May 2020 (MT)

Proposed renaming

This should probably be titled "Integrating scripts with hammer" or something like that. A better "Hello World" example would be using script_reload_code in conjunction with a simple "Hello World" lua script. JJL77 (talk) 14:02, 25 May 2020 (UTC-8:00)