Update README.md

master
AiTechEye 2019-01-13 10:30:55 +01:00 committed by GitHub
parent 511a589616
commit 062962a918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 40 additions and 0 deletions

View File

@ -57,6 +57,46 @@ node.add(a dirt)
<details><summary>Saveing/load</summary>
Everthing in the "save" variable/table will be automacly saved and loaded, eg:
```lua
save.a="asd"
save.unit_users.singleplayer.lpos=get.pos()
if(save.a=="asd")
..code..
end
```
</details>
<details><summary>Events</summary>
Any reasons to the script on the unit is running will be able in the "event" variable, eg: event.type
|event|type|
|timer|
event.type=="timer"
event.type=="wire")
event.channel, event.msg event.from_channel (slower then digilines, but safer cuz you can see what it sent from)
event.type=="mesecon on"
event.type=="mesecon off"
event.type=="digiline"
event.channel event.msg
event.type=="pipeworks"
even.msg={item count}
</details>
<details><summary>IF</summary>