Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Expression 2 v
« Previous 1 … 4 5 6 7 8 Next »
Faction Control for a AI
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Faction Control for a AI
26-12-2013, 11:59 AM,
#3
Access Offline
TSCM Member
***
Posts: 53
Threads: 18
Joined: Oct 2013
RE: Faction Control for a AI
(22-12-2013, 03:26 PM)T-15 Wrote: this is an e2 example for chat controlled faction sharing botSay()

@name the new faction code
@inputs
@outputs
@persist
@trigger
Chat = lastSpoke():lastSaid():lower()
Ofaction = owner():getFaction()
Pfaction = lastSpoke():getFaction()
if(Pfaction == Ofaction){
ListenTo = lastSpoke()
}

if you use if(chatClk(owner())) or something replace owner with ListenTo
T-15 Good work but there is really no need for all of them lines of code there is 1 simple line of code that you can use for letting your faction members use your bot there is no need for the rest

“If the facts don't fit the theory, change the facts.”

[Image: star-trek-3-screenwriters.jpg]
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Faction Control for a AI - by TheOneAndOnlyTee - 22-12-2013, 03:26 PM
RE: Faction Control for a AI - by busterbeej332 - 22-12-2013, 03:29 PM
RE: Faction Control for a AI - by Access - 26-12-2013, 11:59 AM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.