1<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 2<!DOCTYPE funcs 3 SYSTEM '../../../clonk.dtd'> 4<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?> 5<funcs> 6 <func> 7 <title>SetViewOffset</title> 8 <category>Player</category> 9 <subcat>View</subcat> 10 <version>5.1 OC</version> 11 <syntax> 12 <rtype>bool</rtype> 13 <params> 14 <param> 15 <type>int</type> 16 <name>player</name> 17 <desc>Player whose view offset you want to change.</desc> 18 </param> 19 <param> 20 <type>int</type> 21 <name>x</name> 22 <desc>X offset value in pixels.</desc> 23 </param> 24 <param> 25 <type>int</type> 26 <name>x</name> 27 <desc>Y offset value in pixels.</desc> 28 </param> 29 </params> 30 </syntax> 31 <desc>Moves the view of a player permanently by a given offset. Calling the function again will set a new offset. Calling the function with 0,0 parameters will reset to normal, centered view. 32 Returns false if the given player is invalid and true otherwise.</desc> 33 <related> 34 <funclink>SetPlrView</funclink> 35 <funclink>ShakeViewport</funclink> 36 </related> 37 </func> 38</funcs> 39