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

Members Online

»
0 Active | 52 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 : Call of Duty 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Script problem
SliZe
General Member
Since: Apr 18, 2008
Posts: 21
Last: Aug 21, 2010
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Friday, Dec. 18, 2009 05:44 pm
Hay all!

I tryed to do my first script, for a door. But it aint working, When i press "F" nothing hapens
[banghead] I yoused this tut: http://modsonline.com/Tutorials-read-479.html?start=

Can someone help?

-SliZe

edited on Dec. 18, 2009 12:47 pm by SliZe
Share |
tomv8
General Member
Since: Oct 5, 2008
Posts: 469
Last: Jul 14, 2010
[view latest posts]
Level 5
Category: CoD4 Scripting
Posted: Friday, Dec. 18, 2009 05:57 pm
same problem :|
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Friday, Dec. 18, 2009 07:18 pm
Try this one instead. Should be much easier to follow. [moon]

Tutorial Link Here
Share |
tomv8
General Member
Since: Oct 5, 2008
Posts: 469
Last: Jul 14, 2010
[view latest posts]
Level 5
Category: CoD4 Scripting
Posted: Friday, Dec. 18, 2009 07:25 pm
tht 1 dont work either >:(
Share |
DemonSeed
General Member
Since: Apr 30, 2009
Posts: 1362
Last: Feb 19, 2018
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Friday, Dec. 18, 2009 07:57 pm
tomv8 writes...
Quote:
tht 1 dont work either >:(


Yes it does. Maybe YOU arent setting it up properly?
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Friday, Dec. 18, 2009 08:25 pm
DemonSeed writes...
Quote:
tomv8 writes...
Quote:
tht 1 dont work either >:(


Yes it does. Maybe YOU arent setting it up properly?


He's right, it does work. I know, cause I wrote the tut for it.

I don't get how it doesn't work?? [lol]

You need to read things carefully [idea]
Share |
tomv8
General Member
Since: Oct 5, 2008
Posts: 469
Last: Jul 14, 2010
[view latest posts]
Level 5
Category: CoD4 Scripting
Posted: Friday, Dec. 18, 2009 11:58 pm
:( well u know when u said to put the targetname of rotate 90 on door do u mean origin or the door?
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Saturday, Dec. 19, 2009 01:02 am
tomv8 writes...
Quote:
:( well u know when u said to put the targetname of rotate 90 on door do u mean origin or the door?


Put a targetname of rotate 90?? [confused]
I think you have your terms scrambled.
Anyways, read it again here...
=========

We need to also tell this trigger which way we want the door to open. Will it open 90? or -90? or whatever. This script allows you to give different doors different values of rotation. One script can work on any door in your map and it can open any direction. This value must be added! The script needs to know a value for "count".

Key: count
Value: 90

========
You are only giving the values to the trigger, not the door or the origin. The door + origin are and should already be one script brushmodel.
Share |
tomv8
General Member
Since: Oct 5, 2008
Posts: 469
Last: Jul 14, 2010
[view latest posts]
Level 5
Category: CoD4 Scripting
Posted: Saturday, Dec. 19, 2009 11:27 am
WTF i did it on door >:( il do on trigger now and try :)
Share |
tomv8
General Member
Since: Oct 5, 2008
Posts: 469
Last: Jul 14, 2010
[view latest posts]
Level 5
Category: CoD4 Scripting
Posted: Saturday, Dec. 19, 2009 01:11 pm
k it works but u really should fix this line

Give the door the following value. It must be one or the other (90 or -90). This tells the door which way to open, towards you or away from you. Towards and away, depend on the position of the door in Radiant, on it's X and Y axis. I usually just assign it a 90 value, then when I run the map, if the door opens the direction I want, I leave it. If it doesn't, I change it to -90.

Give the door the following value. should be give the TRIGGER the following value. :)
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

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

»