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

Method CommandFlagged

internal/scripting/actor_func.go:327–336  ·  view source on GitHub ↗
(cmd string, flags events.EventFlag, waitSeconds ...float64)

Source from the content-addressed store, hash-verified

325}
326
327func (a ScriptActor) CommandFlagged(cmd string, flags events.EventFlag, waitSeconds ...float64) {
328 if len(waitSeconds) < 1 {
329 waitSeconds = append(waitSeconds, 0)
330 }
331 if a.userId > 0 {
332 a.userRecord.CommandFlagged(cmd, flags, waitSeconds[0])
333 } else {
334 a.mobRecord.Command(cmd, waitSeconds[0])
335 }
336}
337
338func (a ScriptActor) TrainSkill(skillName string, skillLevel int) bool {
339

Callers 1

MoveRoomMethod · 0.45

Calls 1

CommandMethod · 0.45

Tested by

no test coverage detected