Cam Distance Problems

Jackal

You can change this now in User CP... or Die Tryin
Reaction score
38
Trigger:
  • Set Camera Custom Distance
    • Events
      • Player - Player 1 (Red) types a chat message containing cam as A substring
      • Player - Player 2 (Blue) types a chat message containing cam as A substring
      • Player - Player 3 (Teal) types a chat message containing cam as A substring
      • Player - Player 4 (Purple) types a chat message containing cam as A substring
      • Player - Player 5 (Yellow) types a chat message containing cam as A substring
      • Player - Player 6 (Orange) types a chat message containing cam as A substring
      • Player - Player 7 (Green) types a chat message containing cam as A substring
      • Player - Player 8 (Pink) types a chat message containing cam as A substring
      • Player - Player 9 (Gray) types a chat message containing cam as A substring
      • Player - Player 10 (Light Blue) types a chat message containing cam as A substring
      • Player - Player 11 (Dark Green) types a chat message containing cam as A substring
      • Player - Player 12 (Brown) types a chat message containing cam as A substring
    • Conditions
    • Actions
      • Set TempInteger = (Integer((Substring((Entered chat string), 5, 10))))
      • Camera - Set (Triggering player)'s camera Distance to target to (Real(TempInteger)) over 1.00 seconds


Although this is intended to let the player set it's camera distance, it only seems to set the camera distance to 1. Why, and how do I fix it? o_O
 

Nexor

...
Reaction score
74
instead of: Set TempInteger = (Integer((Substring((Entered chat string), 5, 10))))

use:
Set TempInteger = (Integer((Substring((Entered chat string), 5, Lenght of (Entered chat string)))))
 

Komaqtion

You can change this now in User CP.
Reaction score
469
And, also, make sure you have a space after "cam" in every event:
Trigger:
  • Set Camera Custom Distance
    • Events
      • Player - Player 1 (Red) types a chat message containing cam(space) as A substring
      • Player - Player 2 (Blue) types a chat message containing cam(space) as A substring
      • Player - Player 3 (Teal) types a chat message containing cam(space) as A substring
      • Player - Player 4 (Purple) types a chat message containing cam(space) as A substring
      • Player - Player 5 (Yellow) types a chat message containing cam(space) as A substring
      • Player - Player 6 (Orange) types a chat message containing cam(space) as A substring
      • Player - Player 7 (Green) types a chat message containing cam(space) as A substring
      • Player - Player 8 (Pink) types a chat message containing cam(space) as A substring
      • Player - Player 9 (Gray) types a chat message containing cam(space) as A substring
      • Player - Player 10 (Light Blue) types a chat message containing cam(space) as A substring
      • Player - Player 11 (Dark Green) types a chat message containing cam as A substring
      • Player - Player 12 (Brown) types a chat message containing cam(space) as A substring
    • Conditions
    • Actions
      • Set TempInteger = (Integer((Substring((Entered chat string), 5, (Length of (Entered chat string))))))
      • Camera - Set (Triggering player)'s camera Distance to target to (Real(TempInteger)) over 1.00 seconds
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top