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?
-
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"); } }
-
That makes sense, I'll let you know if it works!
-
S3VDITO There were several errors, but thanks for the idea! Now it works.
-
gsc.iprintln("hello boyz");