Seriously!

Go Back   Seriously! Forums > Serious Sam Series > Serious Sam 3 > Serious Sam 3: BFE Workshop

Serious Sam 3: BFE Workshop The official forum for Serious Sam 3: BFE projects, be it maps, mods, or something else.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 12-23-2015, 05:04 PM   #1   Add To Ignore List  
Master of Kalamzoo
 
Captain_Russia's Avatar
 
Joined: Jun 2006
Location: Tropico
 
Captain_Russia is offline
Default AddPlayerCommand() No longer works

an Update broke this function, I tried fixing it but the commands don't show up anymore in the controls.


Please, does anyone know a FIX!?!
__________________
It's been an honor to be have been part of this site for so long
captainrussiacptnrss07@gmail.com
  Reply With Quote
Old 01-16-2016, 09:54 AM   #2   Add To Ignore List  
Night Sparrow
 
Ryason55's Avatar
 
Joined: Nov 2006
 
Ryason55 is offline
Default Re: AddPlayerCommand() No longer works

They added a third argument to the "AddPlayerCommand()" function (there were only two before). The argument determines whether or not the binding is visible in the menu. Just add the argument to your existing CommandTable scripts and they'll work.
  Reply With Quote
Old 01-16-2016, 09:49 PM   #3   Add To Ignore List  
Master of Kalamzoo
 
Captain_Russia's Avatar
 
Joined: Jun 2006
Location: Tropico
 
Captain_Russia is offline
Default Re: AddPlayerCommand() No longer works

I know that, the problem is I tried setting the last argument to true and still, it doesn't show up. I kept trying everything and it still wasn't working (as in the binding option wasn't showing no matter what)

Like this is what I tried:
AddPlayerCommand("cmdComview","SeriousLands: Commander View",1)
and this
AddPlayerCommand("cmdComview","SeriousLands: Commander View",true)
and still no binding option shows up in controls
__________________
It's been an honor to be have been part of this site for so long
captainrussiacptnrss07@gmail.com

Last edited by Captain_Russia; 01-16-2016 at 09:52 PM.
  Reply With Quote
Old 01-17-2016, 04:29 AM   #4   Add To Ignore List  
Night Sparrow
 
Ryason55's Avatar
 
Joined: Nov 2006
 
Ryason55 is offline
Default Re: AddPlayerCommand() No longer works

Well, I copied it to one of my existing CommandTable scripts and it works just fine for me. Is the script (which should only contain the "AddPlayerCommand" lines) located in the correct folder?:
Code:
Content/SeriousSam3/Scripts/CommandTable/

Last edited by Ryason55; 01-17-2016 at 04:34 AM.
  Reply With Quote
Old 01-17-2016, 07:57 AM   #5   Add To Ignore List  
Master of Kalamzoo
 
Captain_Russia's Avatar
 
Joined: Jun 2006
Location: Tropico
 
Captain_Russia is offline
Default Re: AddPlayerCommand() No longer works

No it wasn't, I didn't know I had to have it in a folder for it to work (aside from world scripts and startup scripts), but it's not like any of this was documented so I asked the question, I'm really tired right now. I'll edit the post later after I see if it works.
__________________
It's been an honor to be have been part of this site for so long
captainrussiacptnrss07@gmail.com
  Reply With Quote
Old 01-17-2016, 08:29 AM   #6   Add To Ignore List  
Night Sparrow
 
Ryason55's Avatar
 
Joined: Nov 2006
 
Ryason55 is offline
Default Re: AddPlayerCommand() No longer works

It's documented in one of the very few tutorials on the wiki:
http://www.serioussam.com/wiki/index...ndsAndBindings

Last edited by Ryason55; 01-17-2016 at 08:31 AM.
  Reply With Quote
Old 01-17-2016, 04:14 PM   #7   Add To Ignore List  
Master of Kalamzoo
 
Captain_Russia's Avatar
 
Joined: Jun 2006
Location: Tropico
 
Captain_Russia is offline
Default Re: AddPlayerCommand() No longer works

YES, YES!
IT is working now, thank you very much Ryason, I knew you had the answer!
__________________
It's been an honor to be have been part of this site for so long
captainrussiacptnrss07@gmail.com
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:15 PM.