Announcement

Collapse
No announcement yet.

SLIC problem : key.pressed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SLIC problem : key.pressed

    Hi to all i'm new to this forum
    I don't exactly know how to use key.pressed .
    Is this something like Trigger 'KeyA' When ( key.pressed == "a" ) { ?


    By the way, i would like to know another thing :

    Is there anyway to access to the name of a player's civ (with SLIC) directly in the string, like you can find in game files :
    "[player.1.civ] ............ [player.2.civ]"
    But this does not seems to work or maybe i'm wrong in another point. I would like to know how to use player's civ's name.
    -----------------------------------------------
    Metal -- from France

  • #2
    That's now ok, forget about that if anyone read this post (but there seems to be nobody now on CTP1)...

    I've found how to use key.pressed

    ----------------------------------
    SetActionKey( 1 , "a" );
    Trigger 'MyTrigger' When (key.1.pressed)
    -------------------------------------

    This will trigger whenever a player press 'a' key.
    -----------------------------------------------
    Metal -- from France

    Comment


    • #3
      Thanks for the information Metal.
      I'm a slic beginner and such information will be necessary, I think!
      Zobo Ze Warrior
      --
      Your brain is your worst enemy!

      Comment

      Working...
      X