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

Members Online

»
0 Active | 14 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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 : Call of Duty
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Scripting Help Please
Jesse127
General Member
Since: Aug 14, 2004
Posts: 58
Last: Apr 7, 2005
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Tuesday, Nov. 16, 2004 03:06 am
I just now read the scripting tutorial on this site and I did everything it said to on the last part about making a sliding door and i tryed it out in a map and it didnt work. I dont get any script compile errors or anything like that its just that my brush does not move. I got my trigger with the targetname of "slider_trigger" And i got my script_brushmodel with the targetname of "slide" and the origin is inside of it. One question about the origin tho, am i supposed to make the origin be a script_brushmodel" like my door?
And am I supposed to make my origin have the same targetname as my door because that is what I did. Maybe that is the problem. Could someone please help me out on this I really want to learn how to script.
Share |
StrYdeR
General Member
Since: May 11, 2004
Posts: 11671
Last: Oct 7, 2021
[view latest posts]
Level 10
Admin
Forum Moderator
Im a HOST of MODSonair
Category: CoD Mapping
Posted: Tuesday, Nov. 16, 2004 03:18 am
delete your origin textured brush and try it again

in most cases - the origin will be used as a hinge, and a sliding door doesnt want to rotate on a hinge, plus - if you followed my tut exactly, then you should be defining the entity movement (movez) without needing an origin brush [angryalien]
Share |
Jesse127
General Member
Since: Aug 14, 2004
Posts: 58
Last: Apr 7, 2005
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Tuesday, Nov. 16, 2004 03:22 am
Ok, thanks ill go try it out right now.
Share |
Jesse127
General Member
Since: Aug 14, 2004
Posts: 58
Last: Apr 7, 2005
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Tuesday, Nov. 16, 2004 03:40 am
Ok i erased the origin brush like you said but it still doesnt work. Here is the script. I think i got it down right.

main()

{
thread door_slider ();
}

door_slider ()
{
door = getent ("slide ", "targetname");
trig = getent ("slider_trigger ", "targetname");
while (1)
{
trig waittill ("trigger");
door movez (80, 2, 0, 0.5);
door waittill ("movedone");
wait (4);
door movez (-80, 2, 0, 0.5);
door waittill ("movedone");
}
}

I dont get why you told me to erase the origin tho because in your tutorial it says "keep in mind to include a brush origin inside." But you better than me with all this so im not gonna question you lol.
Share |
drofder2004
General Member
Since: Apr 11, 2004
Posts: 207
Last: Mar 12, 2007
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Tuesday, Nov. 16, 2004 03:48 am
Yep also stuck with this tutorial [hence my post on "request"]

Not enough details is given about the origin brush.

I make both Brush and Origin a script_brushmodel yet it still doesn't work. Definitly a problem somewhere to do with the origin. Any more info you could give to help us Stryder?
Share |
StrYdeR
General Member
Since: May 11, 2004
Posts: 11671
Last: Oct 7, 2021
[view latest posts]
Level 10
Admin
Forum Moderator
Im a HOST of MODSonair
Category: CoD Mapping
Posted: Tuesday, Nov. 16, 2004 01:03 pm
ok...here is how it works

when you draw a brush - it has an origin...this is the exact center of your cubic coordinates...

think of the exact dead center of a cube...this is that cubes origin

when you draw an origin brush (for a hinge on a door, or a rotational axis) and link it to the object (either through scripting or in the map editor) you are changing the origin of the cube (because you are in essence changing the rotational axis....or making a hinge)

double check your .map entities, especially your targetnames, as most often they are the culprit

hopefully that answers your questions

if not i will throw together a little map tonight (if i have time) that will have a rotating and a sliding door...and post it in the suppliments section - let me know [angryalien]
Share |
Jesse127
General Member
Since: Aug 14, 2004
Posts: 58
Last: Apr 7, 2005
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Tuesday, Nov. 16, 2004 10:20 pm
LMAO, sorry for being so dumb. Could you please make a small map that shows me how to move anything?
Share |
Jesse127
General Member
Since: Aug 14, 2004
Posts: 58
Last: Apr 7, 2005
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Tuesday, Nov. 16, 2004 10:23 pm
If your need my email address it is Jesse_Bowen123@hotmail.com
Share |
getmapsfergy
General Member
Since: Mar 15, 2004
Posts: 42
Last: Mar 24, 2005
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Tuesday, Nov. 16, 2004 11:46 pm
see tuts on moving along the z access...like doors, and x acces like the sliding door up..but how about along the y access...want to use it to slide a bridge across a canal!

and i'm having the same problem here...help would be appreciated!
Share |
Jesse127
General Member
Since: Aug 14, 2004
Posts: 58
Last: Apr 7, 2005
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Thursday, Nov. 18, 2004 01:24 am
Yes! I got it working. Thanks a lot guys. I gotta question about it tho. Right now im using a button that i have to press to open my door. Is there a way so that when i run through a trigger it opens my door? And when im using buttons is there a way i can press the button again after it goes to the end to bring it down without waiting for the seconds i told it to wait in the script? (I hope that made since lol.)
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty : CoD 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

»