Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_stealing.php on line 3
Warning: include(http://map.planetmedalofhonor.gamespy.com/mohaa/poll/poll_cookie.php): failed to open stream: no suitable wrapper could be found in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_stealing.php on line 3
Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/poll/poll_cookie.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_stealing.php on line 3 .map :: Mapping for MoHAA
Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_stealing.php on line 57
Warning: include(http://map.planetmedalofhonor.gamespy.com/mohaa/leftindex.php): failed to open stream: no suitable wrapper could be found in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_stealing.php on line 57
Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/leftindex.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_stealing.php on line 57
Objective : Stealing the Documents
:: Manstein
-------------------------------------------------------------------------------
So, you want to have an objective in your SP-Map? No
problem! Let me show you how to map and script an "Take
away" objective for your SP-Mission:
1. First off: Start up your MOHRAD and build a map.
I did an outdoor part and an indoor part (where the
documents are located).
2. Place a static/furniture/bunkertable to rest the
documents on. Place it somewhere in the indoor section.
3. Place a script_origin where you want the documents
to appear. Give it key /
value as follows:
$targetname documents
model models/items/documents1a.tik
Deselect everything and go on to the next step:
4. Create a trigger_multiple that covers the same area
as the script_origin. Make it slightly bigger than the
documents to ensure, the player can trigger it. Give
it this key / value
:
cnt 1
setthread objective1
So much for the mapping part. Save your map as test_scriptdocu
and shut down the Editor.
Open up your Script-Editor (e.g. Notepad / I prefer
Crimson Editor) and create a Scriptfile called test_scriptdocu.scr.
Write the following blue lines just behind
level waittill spawn:
waitthread global/objectives.scr::add_objectives
1 2 "Get the documents." $documents.origin
//compass will point to
the documents location
waitthread global/objectives.scr::current_objectives
1
end
///////////////////////////
objective1:
$documents remove //
The documents will disappear after the player
has reached them
goto objective
end
///////////////////////////
objective:
waitthread global/objectives.scr::add_objectives
1 3 "Get the documents." $documents.origin
waitthread global/objectives.scr::current_objectives
0
end // place a check behind
the objective ingame
That is all. Not difficult, wasn?t it? Ok, compile
the map and play.
Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_stealing.php on line 165
Warning: include(http://map.planetmedalofhonor.gamespy.com/mohaa/rightindex.php): failed to open stream: no suitable wrapper could be found in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_stealing.php on line 165
Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/rightindex.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_stealing.php on line 165
Warning: require(): open_basedir restriction in effect. File(/home/map/cgi-bin/mohaa/poll/include/config.inc.php) is not within the allowed path(s): (/var/www/vhosts/own3mall/mohaaaa.co.uk:/usr/share/php:/usr/share/pear) in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_stealing.php on line 176
Warning: require(/home/map/cgi-bin/mohaa/poll/include/config.inc.php): failed to open stream: Operation not permitted in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_stealing.php on line 176
Fatal error: require(): Failed opening required '/home/map/cgi-bin/mohaa/poll/include/config.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_stealing.php on line 176