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
Threaded Mode
Faction Control for a AI
22-12-2013, 03:26 PM,
#1
TheOneAndOnlyTee Offline
GMod Admin
Posts: 755
Threads: 47
Joined: Oct 2013
Faction Control for a AI
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

Steam Profile
My Discord Server
Need help with E2 or SF? , just ask me and i'll try to help.
[Image: 98Dkcoz.gif]
Find
Reply
22-12-2013, 03:29 PM, (This post was last modified: 22-12-2013, 03:29 PM by busterbeej332.)
#2
busterbeej332 Offline
Valued donator and member
****
Posts: 111
Threads: 28
Joined: Nov 2013
RE: Faction Control for a AI
nice work ill use this for atlantis

ill contiue work on atllantis tomoz
Find
Reply
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 »


  • View a Printable Version
Forum Jump:


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

Powered By MyBB, © 2002-2026 MyBB Group.