(cmd string, waitSeconds ...float64)
| 314 | } |
| 315 | |
| 316 | func (a ScriptActor) Command(cmd string, waitSeconds ...float64) { |
| 317 | if len(waitSeconds) < 1 { |
| 318 | waitSeconds = append(waitSeconds, 0) |
| 319 | } |
| 320 | if a.userId > 0 { |
| 321 | a.userRecord.Command(cmd, waitSeconds[0]) |
| 322 | } else { |
| 323 | a.mobRecord.Command(cmd, waitSeconds[0]) |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | func (a ScriptActor) CommandFlagged(cmd string, flags events.EventFlag, waitSeconds ...float64) { |
| 328 | if len(waitSeconds) < 1 { |