Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. iPrintLn for everyone?

iPrintLn for everyone?

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
5 Posts 3 Posters 181 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • shanzundefined Offline
    shanzundefined Offline
    shanz
    wrote on last edited by
    #1

    I've already tried level.println("test"); but I get "Error executing function", so how can I print a message for everyone?

    S3VDITOundefined 1 Reply Last reply
    0
    • S3VDITOundefined Offline
      S3VDITOundefined Offline
      S3VDITO
      replied to shanz on last edited by
      #2

      shanz said in iPrintLn for everyone?:

      I've already tried level.println("test"); but I get "Error executing function", so how can I print a message for everyone?

      you can probably use "getentbynum(entRef)"
      I DID NOT CHECK IT AND DO NOT KNOW IF IT WILL WORK.
      (in COD4 getentbynum/loops/isplayer worked fine)

      for(int entRef = 0; entRef < 18; entRef++) //max entRef for player = 17
      {
          if(level.isplayer(level.getentbynum(entRef)))
          {
              level.getentbynum(entRef).println("test");
          }
      }
      
      shanzundefined 1 Reply Last reply
      0
      • shanzundefined Offline
        shanzundefined Offline
        shanz
        wrote on last edited by
        #3

        That makes sense, I'll let you know if it works!

        1 Reply Last reply
        0
        • shanzundefined Offline
          shanzundefined Offline
          shanz
          replied to S3VDITO on last edited by
          #4

          S3VDITO There were several errors, but thanks for the idea! Now it works.

          1 Reply Last reply
          0
          • xensikundefined Offline
            xensikundefined Offline
            xensik
            wrote on last edited by
            #5
            gsc.iprintln("hello boyz");
            
            1 Reply Last reply
            1

            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Donate