SHOW:
|
|
- or go back to the newest paste.
1 | // 1. The fish spawner needs to distinguish which rod to spawn the fish from. In order to do that you will need to pass the key of owner of the rod over to the spawner by sending in the say commands and parsing the messages in the listen event. | |
2 | ||
3 | default | |
4 | { | |
5 | state_entry() | |
6 | { | |
7 | llListen(-11223,"Fish Pond","",""); | |
8 | ||
9 | ||
10 | } | |
11 | ||
12 | listen(integer channel, string what, key who, string msg) | |
13 | { | |
14 | ||
15 | llSay(-11223,"Equip_" + (string)llGetOwner()); | |
16 | ||
17 | // 2. The parsing function will split up a message into a list into separate | |
18 | // elements. We will use a separator symbol for the parsing function to | |
19 | // distinguish where to spilt the message up. In this case we use the underscore | |
20 | // as the separator symbol. | |
21 | ||
22 | } | |
23 | ||
24 | } |