![cs2d lua cmd](img/i_codehelp.png)
Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Ideas & bugs for CS2D website (NOT THE GAME!)
38 replies![cs2d lua cmd](img/i_codehelp.png)
![user](img/i_friend.png)
I added the process values to
![cs2d lua cmd](img/i_codehelp.png)
![user](img/i_friend.png)
EDIT:
Quote
Lua functions io.enumdir (iterate over all files in a given directory) and io.isdir (check if a given path points to a directory)
![ADDED](img/clog_added.png)
![user](img/i_friend.png)
![user](img/i_friend.png)
Entity type (or ID) 1 is actually a CT spawn, 0 is a T spawn.
![user](img/i_friend.png)
![user](img/i_friend.png)
@
![user](img/i_friend.png)
![cs2d lua cmd](img/i_codehelp.png)
player IDparameter?
![>](img/i_next.png)
![IMG:https://i.imgur.com/T7n47OA.png](https://i.imgur.com/T7n47OA.png)
Machete does not have +Attack
EDIT: Also server stats specification please.
edited 1×, last 10.12.17 05:07:54 pm
![user](img/i_friend.png)
![user](img/i_friend.png)
Usually you attack first and then hit:
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("attack","onAttack") function onAttack(pid) 	msg("Debug: OnAttack("..pid..")") end addhook("hit","onHit") function onHit(vic,src) 	msg("Debug: OnHit("..vic..","..src..")") end
Debug: OnHit(3,1)
Debug: OnAttack(1)
![user](img/i_friend.png)
By the way wrong thread :p
![](img/smiles/heart.gif)
![cs2d lua cmd](img/i_codehelp.png)
usage
imageid = image("<light>",200,200,1)
I think this thing is being unused and forgotten.
But i was about to make a campfire with custom light and just remember that somewhere SQ made a post about custom light images.
Change this:
![IMG:https://i.imgur.com/vQNOEuz.png](https://i.imgur.com/vQNOEuz.png)
for this:
![IMG:https://i.imgur.com/NcVQaip.png](https://i.imgur.com/NcVQaip.png)