ACS function to return player name

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
cccp_leha
Posts: 1816
Joined: Wed Jul 16, 2003 7:21 am
Location: NJ, USA
Contact:

ACS function to return player name

Post by cccp_leha »

I saw this in dwforums2.wad, but the BEHAVIOR lump is corrupt... Thanks.
Cyb
Posts: 912
Joined: Tue Jul 15, 2003 5:12 pm

Post by Cyb »

print(n:0); will print the activator's name, don't quote me on this, but n:1, n:2 etc etc should be the respective players, but I may be wrong. Nanami probably knows.
User avatar
cccp_leha
Posts: 1816
Joined: Wed Jul 16, 2003 7:21 am
Location: NJ, USA
Contact:

Post by cccp_leha »

Thanks, you are totally right. Now my project will be personalized as well!
User avatar
Hirogen2
Posts: 2033
Joined: Sat Jul 19, 2003 6:15 am
Operating System Version (Optional): Tumbleweed x64
Graphics Processor: Intel with Vulkan/Metal Support
Location: Central Germany
Contact:

Post by Hirogen2 »

Uh probably getcvar("name") ?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49232
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

You can't assign strings that are not part of an ACS file to a variable. Strings are just indices into the string table.

Yes, this means you can't assign the player's name to a variable.
Locked

Return to “Editing (Archive)”