MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / Command

Method Command

internal/scripting/actor_func.go:316–325  ·  view source on GitHub ↗
(cmd string, waitSeconds ...float64)

Source from the content-addressed store, hash-verified

314}
315
316func (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
327func (a ScriptActor) CommandFlagged(cmd string, flags events.EventFlag, waitSeconds ...float64) {
328 if len(waitSeconds) < 1 {

Callers 1

CommandFlaggedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected