
 |
| Author |
Topic: Rotating doors |
| Slagjoeyoco |
 |
General Member Since: Aug 1, 2006 Posts: 61 Last: Feb 8, 2008 [view latest posts] |
|
|
|
|
| foyleman |
 |
Preferred PLUS Member Since: Nov 6, 2001 Posts: 55046 Last: Mar 12, 2010 [view latest posts] |
|
|
 |
 |
 |
|
|
| Slagjoeyoco |
 |
General Member Since: Aug 1, 2006 Posts: 61 Last: Feb 8, 2008 [view latest posts] |
|
|
|
|
| foyleman |
 |
Preferred PLUS Member Since: Nov 6, 2001 Posts: 55046 Last: Mar 12, 2010 [view latest posts] |
|
|
 |
 |
 |
|
Category: Q4 Mapping Posted: Friday, Dec. 29, 2006 06:01 pm |
 |
You will have to go through the tutorial twice then. Once for each side of the door.
You need to trigger a separate script for each side of the door so that it opens opposite the player.
Now, the trick will be making it so that the second trigger (to the player) doesn't interfere with the first. When the player activates the first script and walks through the door. The second script will be activated and you need to stop this from happening.
I recommend adding something to the script that removes the second trigger until after the first script is run. So, the start of the script will remove the trigger brush from the map (or deactivate it). Then the end of the script will put the trigger brush back in.
Or another option is to move the second trigger to a place outside of your map while the script is activated. Then move it back at the end.
some scripting info: http://www.doom3world.org/phpbb2/viewtopic.php?t=2562&highlight=script+remove+trigger
|
Have you heard the MODSonair Podcast?:
MODSonair is a weekly podcast bringing you the news from a modders perspective.
Tune in every Sunday at 12pm EST to listen LIVE. |
 |
|
|
| Slagjoeyoco |
 |
General Member Since: Aug 1, 2006 Posts: 61 Last: Feb 8, 2008 [view latest posts] |
|
|
|
|
| foyleman |
 |
Preferred PLUS Member Since: Nov 6, 2001 Posts: 55046 Last: Mar 12, 2010 [view latest posts] |
|
|
 |
 |
 |
|
|
| Slagjoeyoco |
 |
General Member Since: Aug 1, 2006 Posts: 61 Last: Feb 8, 2008 [view latest posts] |
|
|
|
|
| foyleman |
 |
Preferred PLUS Member Since: Nov 6, 2001 Posts: 55046 Last: Mar 12, 2010 [view latest posts] |
|
|
 |
 |
 |
|
Category: Q4 Mapping Posted: Saturday, Dec. 30, 2006 10:32 am |
 |
here you go. This will work:
Quote: void rotate_mydoor() {
$mydoor.time(1);
$mydoor.rotateTo('0 -90 0');
sys.wait(3);
$mydoor.time(1);
$mydoor.rotateTo('0 360 0');
} |
Have you heard the MODSonair Podcast?:
MODSonair is a weekly podcast bringing you the news from a modders perspective.
Tune in every Sunday at 12pm EST to listen LIVE. |
 |
|
|
| Slagjoeyoco |
 |
General Member Since: Aug 1, 2006 Posts: 61 Last: Feb 8, 2008 [view latest posts] |
|
|
|
|
|
|
|