Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 64 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : DOOM III
Category: DOOM III Mapping
D3 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Yet more scripting problems!
DEATHGIGAS
General Member
Since: Aug 20, 2004
Posts: 111
Last: Mar 11, 2006
[view latest posts]
Level 4
Category: DOOM III Mapping
Posted: Wednesday, Sep. 29, 2004 11:32 am
I need to create a security panel in a wall that rolls back. When the wall opens, a little platform connected to some cylinders will extend and on the platform will be armour. I already have the panels opening correctly. The question concerns the platform - composed of five pieces - that needs to extend.

How should I do this. It seems to me I need a script that activates the platform - probably a func_mover - and that I need to bind the pieces together. Can it be activated with a relay, since I can't script for spit?
Share |
Liquefier
General Member
Since: Aug 18, 2004
Posts: 67
Last: Oct 19, 2004
[view latest posts]
Level 3
Category: DOOM III Mapping
Posted: Wednesday, Sep. 29, 2004 08:18 pm
it seems to me that you answered your own question. yes, use a func_mover and a trigger_relay to do this and script the func_mover.

You are going to need to use
sys.waitFor(entity)
Share |
foyleman
Preferred PLUS Member
Since: Nov 7, 2001
Posts: 95765
Last: Apr 9, 2024
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: DOOM III Mapping
Posted: Wednesday, Sep. 29, 2004 08:27 pm
I can't think of how to do this properly without making a script for it.

The script would be damn easy. You would use either $entname.move (360, 128 ); or $entname.moveTo('0 128 0'); or something like that depending on the distance or the origin you are moving to.

Then, as mentioned before, between each move you want to wait for the first move to be completed.

You know.. this is pretty well explained by a 3DBuzz.com tutorial here: http://www.3dbuzz.com/

Right there on the front page are downloads for the scripting tutorials (a little to the right).
Go ahead... You Play I Mod : Support Modsonline by becoming a PREFERRED MEMBER today!
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.
Quake 4 Mods for Dummies - Half-Life 2 Mods for Dummies
Share |
DEATHGIGAS
General Member
Since: Aug 20, 2004
Posts: 111
Last: Mar 11, 2006
[view latest posts]
Level 4
Category: DOOM III Mapping
Posted: Thursday, Sep. 30, 2004 09:56 am
I kinda figgered as much. In the editor I have already bound the entities I want connected to the mover together, but when I run it, in the console I get an error stating that I am trying to run an unknown function. This is the script I have written for it :

// this script initializes a security panel mover

void 1stmover()
{
sys.waitFor($wallpanel_2);
$1stmover.time(1);
$1stmover.moveToPos(32 224 64);
}

void main()
{
1stmover();
}

I'm not sure what the problem is. The wallpanel_2 that I wait for doesn't close, I've set it up as a triggerable door through a console and toggled it not to close. Could this be the problem?
Share |
Liquefier
General Member
Since: Aug 18, 2004
Posts: 67
Last: Oct 19, 2004
[view latest posts]
Level 3
Category: DOOM III Mapping
Posted: Thursday, Sep. 30, 2004 10:00 am
ok... the unknown function part. The easiest way to get rid of this is to name the script in the same directory with the same name as the map. (mapname.map, mapname.script)

Also just to save your map time, don't call to the function in main: call to the function with the trigger relay that gets the panel open.
Share |
foyleman
Preferred PLUS Member
Since: Nov 7, 2001
Posts: 95765
Last: Apr 9, 2024
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: DOOM III Mapping
Posted: Thursday, Sep. 30, 2004 11:14 am
right on Liquifier. The reason you get an unknown function error is because the map didn't load your script. You can forcable load it with a command in the worldspawn, but you can be assured less trouble by naming them the same name.
Go ahead... You Play I Mod : Support Modsonline by becoming a PREFERRED MEMBER today!
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.
Quake 4 Mods for Dummies - Half-Life 2 Mods for Dummies
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : DOOM III : DOOM III Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»