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

From Valve Developer Community
< Talk:Half-Life: Alyx Workshop Tools
Revision as of 14:02, 25 May 2020 by Jjl77 (talk | contribs) (Renaming the article)
Jump to navigation Jump to 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)

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)