Forum

> > CS2D > Scripts > Error with effect command
Forums overviewCS2D overview Scripts overviewLog in to reply

English Error with effect command

2 replies
To the start Previous 1 Next To the start

old Error with effect command

Masea
Super User Off Offline

Quote
1
timer(math.random(150,300),"parse",'lua parse("effect \"fire"\ '..objectsa[oid][3]*32+math.random(-32,32)..' '..objectsa[oid][4]*32+math.random(-32,32)..' 5 10")',math.random(10,20))

Where is the issue here? There is no any problem about coordinates. Thanks in advance.

ERROR:
1
ERROR: Unknown command 'fire' (lua parse("effect "fire" 2185 1220 5 10"))
edited 1×, last 20.11.16 12:42:13 pm

old Re: Error with effect command

Hajt
User Off Offline

Quote
1
2
3
local x = objectsa[oid][3] * 32 + math.random(-32, 32)
local y = objectsa[oid][4] * 32 + math.random(-32, 32)
timer(math.random(150, 300), "parse", "effect \"fire\" " .. x .. " " .. y .. " 5 10")
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview