Detect singleplayer

Discussion in 'World Editor Help' started by afisakov, Jul 23, 2017.

  1. afisakov

    afisakov You can change this now in User CP.

    Ratings:
    +38 / 0 / -0
    Does anyone here know of a reliable way to detect singleplayer, but NOT a Lan player playing alone.
    I am working on an rpg and want to allow people to be able to play alone (solo lan), but not have access to the cheats in singleplayer (whosyourdaddy etc.).
     
  2. millzy

    millzy Ultra Cool Member

    Ratings:
    +44 / 0 / -0
    try the condition
    Code:
    (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing)))) Equal to 1
    
    also whats the bb code for triggers?
     
  3. vypur85

    vypur85 Hibernate

    Ratings:
    +797 / 0 / -0
  4. GFreak45

    GFreak45 I didnt slap you, i high 5'd your face.

    Ratings:
    +132 / 0 / -0
    Why dont you just make events that detect these cheats being entered, and end the game instantly, there are only a few cheats
     
  5. jonas

    jonas Member

    Ratings:
    +41 / 4 / -0
    You could fool around a little with game cache and saving and loading. I think these work slightly differently for Single/Multiplayer, but I'm not sure how to turn that into something that works.

    Detecting cheats in chat is probably not possible. But you could measure the effects of the cheat, if it's really a big deal for you.
     

Share This Page