The Picture Placer tool. Left click places the picture at the given URL (a png or jpg
image) on the surface the owner is looking at, with the chosen width, height and fade
offset; right click removes the picture the owner is looking at. The tool requires the
pictures permission, which placing and removing check as well.
Summary
Functions
BuildCPanel(CPanel)shared
Builds the tool's settings panel: picture URL, width, height and fade offset.
Methods
LeftClick(trace)shared
Places a 3D picture built from the tool's settings on the surface that was hit.
RightClick(_trace)shared
Requests removal of the 3D picture the tool owner is looking at.
Functions
Builds the tool's settings panel: picture URL, width, height and fade offset.
Parameters
- CPanel Panel the tool's control panel
Methods
Places a 3D picture built from the tool's settings on the surface that was hit. The URL must end with png, jpg or jpeg.
Parameters
- trace Map trace result of the tool owner's aim
Returns
- Boolean true if the picture was placed (always true clientside), false if the URL is invalid, nil if the owner lacks the 'pictures' permission
Requests removal of the 3D picture the tool owner is looking at.
Parameters
- _trace Map trace result of the tool owner's aim
Returns
- Boolean always true