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/vehicle_move.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/vehicle_move.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/vehicle_move.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/vehicle_move.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/vehicle_move.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/vehicle_move.php on line 57
This tutorial assumes you have basic scripting knowledge.
This may not work with all vehicles.
Ok, open up MOHRAD, make a new map, with a skybox and
ground (see the Sunlight
tutorial if you don't know how to do this). Make it
equal, or bigger than 2056 (length) * 1024 (width) *
512 (height). Add a playerstart.
Now, in the 2d window, right click, and choose vehicle->
German -> Opeltruck
Now, with the new truck still selected, press 'N' and
add the following key / values in:
The key is in red, the
value is in blue.
targetname trk
Not too hard eh? Now, make an info->Waypoint a little
ways in front of the truck.
And add the following keys:
targetname wap
target wap2
Now, make another waypoint further away from our first
waypoint, and add these values:
targetname wap2
That's it! You should see a green line connecting the
2 waypoints.
Later on you can make as many waypoints as you want
pointing to each other.
Save your map as: test_truckmove.map
Now, for the script. Open up notepad and paste the
following script into it.
level waittill
prespawn
exec global/ambient.scr test_truckmove
level waittill spawn
level.script = "maps test_truckmove.scr"
thread truck
// thread simply executes
a different section of the script named, //
good for orginization
end
truck:
$trk drive $wap // look
familiar? Trk is our truck, wap is our
// waypoint
end
Save this script as: test_truckmove.scr
That's it! Compile and Have fun! NOTE: This is tested
in Single player mode.
Special thanks to: BlueBrooks on the AA.com forums
for pointing out the Drive command, and it's uses. Give
him the thanks, not I.
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/vehicle_move.php on line 172
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/vehicle_move.php on line 172
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/vehicle_move.php on line 172
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/vehicle_move.php on line 183
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/vehicle_move.php on line 183
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/vehicle_move.php on line 183