Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/html/tutorials/fans.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/html/tutorials/fans.php on line 3
Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/poll/poll_cookie.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/tutorials/fans.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/html/tutorials/fans.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/html/tutorials/fans.php on line 57
Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/leftindex.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/tutorials/fans.php on line 57
This tutorial is repoduced
on .map with the kind permission of its original writer,
MPowell1944.
-------------------------------------------------------------------------------
Creating the Fan
-------------------------------------------------------------------------------
Create a room with a light source (See Creating
your First Room tutorial).Next, create a script_object
and give it a targetname of fan1. make this script_object
the shape of the center of the fan.Create 4 more script_object's
and make them in the shape of fan blades.
Give the first blade a targetname of blade1, the second
a targetname of blade2, the third a targetname of blade3,
and the fourth a targetname of blade4.Move these blades
around so they look attached to the main fan base.
Now comes the scripting for this fan. I assume u already
created an SCR file for your map.
level waittill spawn
thread fan1
end
fan1:
$blade1 bind $fan1
$blade2 bind $fan1
$blade3 bind $fan1
$blade4 bind $fan1
$fan1 rotatey 325 // the
number indicates the speed of the fans rotation.
Use -325 to rotate the fan the other way.
end
Above are the scripting steps you need
to follow. Then compile your map and you will have a
working fan. The above steps are for a ceiling fan.
For a vent fan you would use rotatez instead of rotatey.
If not, use rotatex.
Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/html/tutorials/fans.php on line 142
Warning: include(http://map.planetmedalofhonor.gamespy.com/mohaa/rightindex.php): Failed to open stream: no suitable wrapper could be found in /var/www/html/tutorials/fans.php on line 142
Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/rightindex.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/tutorials/fans.php on line 142
Warning: require(/home/map/cgi-bin/mohaa/poll/include/config.inc.php): Failed to open stream: No such file or directory in /var/www/html/tutorials/fans.php on line 153
Fatal error: Uncaught Error: Failed opening required '/home/map/cgi-bin/mohaa/poll/include/config.inc.php' (include_path='.:/usr/local/lib/php') in /var/www/html/tutorials/fans.php:153
Stack trace:
#0 {main}
thrown in /var/www/html/tutorials/fans.php on line 153