Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
http://docs.samrev.com/en/latest/scripting.html#script-entity
Let me know if this helps!
I wrote a small script but does not work
function example() {
local cop = GetByName("Copier")
local weap = GetByName("G_Buster")
cop.m_penTarget = weap
}
I'm not sure is it properly wrote script
Second, you need to call the functions on the Entities handle. Documented here: http://docs.samrev.com/en/latest/handles/entities.html
local ent = Entities.GetByName("Some Gnaar")
print(ent)
ent.m_fMoveSpeed = 10
This example is good, but editor crashed :(
(ent.m_fMoveSpeed = 10, copier.m_penTarget = PowerUp etc.)