Difference between revisions of "Talk:Half-Life: Alyx Workshop Tools/Lua Scripting/Hello Gordon"

From Valve Developer Community
Jump to: navigation, search
(Created page with "== 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...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Factual errors ==
 
== 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. [[User:Rectus|Rectus]] ([[User talk:Rectus|talk]]) 13:45, 24 May 2020 (UTC)
 
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. [[User:Rectus|Rectus]] ([[User talk:Rectus|talk]]) 13:45, 24 May 2020 (UTC)
 +
 +
--> this has been addressed by changing to CallScriptFunction [[User:McNutty|McNutty]] ([[User talk: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. [[User:Jjl77|JJL77]] ([[User talk:Jjl77|talk]]) 14:02, 25 May 2020 (UTC-8:00)

Latest revision as of 18:32, 27 May 2020

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)