2010-08-22 13:13:17 +00:00
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
< !DOCTYPE funcs
SYSTEM '../../../clonk.dtd'>
2009-05-09 13:11:51 +00:00
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs >
2010-08-22 13:13:17 +00:00
<func >
<title > SetHostility</title>
<category > Player</category>
2011-06-30 10:52:55 +00:00
<version > 5.1 OC</version>
2010-08-22 13:13:17 +00:00
<syntax >
<rtype > bool</rtype>
<params >
<param >
<type > int</type>
<name > player1</name>
<desc > Player whose hostility towards another player you want to change.</desc>
</param>
<param >
<type > int</type>
<name > player2</name>
<desc > Player towards whom you want to change hostility.</desc>
</param>
<param >
<type > bool</type>
<name > hostile</name>
2011-07-30 23:32:02 +00:00
<desc > If <code > true</code> , the relationship is hostile. Otherwise friendly.</desc>
2010-08-22 13:13:17 +00:00
</param>
<param >
<type > bool</type>
<name > silent</name>
2011-07-30 23:32:02 +00:00
<desc > If not <code > false</code> , the hostility messages in the message board will be suppressed. Hostility messages are never displayed during the first frame of a round, regardless of the value of this parameter.</desc>
2010-08-22 13:13:17 +00:00
</param>
<param >
<type > bool</type>
<name > no_calls</name>
2011-07-30 23:32:02 +00:00
<desc > If not <code > false</code> , the callbacks RejectHostilityChange and OnHostilityChange are not executed.</desc>
2010-08-22 13:13:17 +00:00
</param>
</params>
</syntax>
<desc > Sets bilateral friendship of two players.</desc>
<examples >
<example >
2011-07-20 14:22:07 +00:00
<code > SetHostility(0,1,true,true); SetHostility(1,0,true,true);</code>
2010-08-22 13:13:17 +00:00
<text > Makes the first two players enemies without causing a message.</text>
</example>
</examples>
<related > <funclink > Hostile</funclink> </related>
</func>
<author > Sven2</author> <date > 2007-04</date>
</funcs>