View source for Make Nightvision light rooms - EDukeWiki

# View source for Make Nightvision light rooms

← Make Nightvision light rooms

You do not have permission to edit this page, for the following reasons:

- The action you have requested is limited to users in the group: Users.
- You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

This simple example illustrates how to check and alter members of the player structure. This code will cause low visibility areas to become fully visible when the nightvision goggles are used (the normal goggle effects are unchanged). <pre> gamevar TEMP 0 1 actor APLAYER MAXPLAYERHEALTH PSTAND 0 0 // this line is unchanged from the standard cons getplayer[THISACTOR].heat_on TEMP // this reads the heat_on member of the player structure into TEMP // heat_on is 0 if the goggles are off, 1 if they are on ifvare TEMP 1 setplayer[THISACTOR].visibility 0 // if the goggles are on, visibility is set to 0 (full) // the normal APLAYER code resumes below... </pre> [[Category: Tutorials]]

Return to Make Nightvision light rooms.

Retrieved from "http://wiki.eduke32.com/wiki/Make_Nightvision_light_rooms"