[System] First Person

Discussion in 'Starcraft 2 (SC2) Editor Help' started by Jesus4Lyf, Apr 24, 2010.

  1. Jesus4Lyf

    Jesus4Lyf Good Idea™

    Ratings:
    +394 / 0 / -0
    First Person​

    Version 1.0.0​

    Requirements:
    - Smooth Timers (import first)

    See attached SC2Lib file.
    Grants WSAD control of a unit with first person mouse look.

    Trigger:
    • FirstPersonExample
      • Events
        • Timer - Elapsed time is 1.0 Game Time seconds
      • Local Variables
      • Conditions
      • Actions
        • Unit - Create 1 Drone for player 1 at (Start location of player 1) facing 270.0 degrees (No Options)
        • SetFirstPerson(1, (Last created unit))
        • General - Wait 15.0 Game Time seconds
        • SetFirstPerson(1, null)

    Simple example, as it only exposes one action: SetFirstPerson(player integer, unit)
    Set to null unit to revert.
     

    Attached Files:

  2. Cookiemaster

    Cookiemaster New Member

    Ratings:
    +36 / 0 / -0
  3. Jesus4Lyf

    Jesus4Lyf Good Idea™

    Ratings:
    +394 / 0 / -0
    Everything works better when you follow the instructions. Or is that unclear that I mean import Smooth Timers first...
     
  4. Cookiemaster

    Cookiemaster New Member

    Ratings:
    +36 / 0 / -0
    I close my map.

    I Generate a new one. (64x64, with terrain)

    I import SmoothTimers library.
    I import FirstPerson library.

    I hit test map.

    COMPILE ERRORS

    My guess would be that you need to assign Library ID's for this to work properly.

    EDIT:

    The function seems "Apply" in firstperson is being named "lib<LIBRARYID>_gf_Apply", so yeah. It's probably looking at the wrong libid.
     
  5. Jesus4Lyf

    Jesus4Lyf Good Idea™

    Ratings:
    +394 / 0 / -0
    How horrible. :(
    Can you figure out how to stitch it up/help me investigate why it breaks when it's exported? The id for Smart Timers should be J4ST, and the ID for First Person should be J4FP.

    Edit: Demo map attached.
     

    Attached Files:

  6. Renendaru

    Renendaru (Evol)ution is nothing without love.

    Ratings:
    +309 / 0 / -0
    Setting those ID's manually changed nothing...
     

Share This Page