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

Members Online

»
0 Active | 7 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
Previous Page
subscribe
Author Topic: Script for a gate that opens with a trigger_damage
oppdelta
General Member
Since: Jun 3, 2007
Posts: 143
Last: Apr 27, 2011
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Tuesday, Sep. 29, 2009 04:12 am
yes you call it, AND USE MY LAST SCRIPT I POSTED IT WORKS!!!


Also, don't select ya mushroom and put it as an entity... clear it now!

Put a trigger around it (with trigger texture) select the trigger

KEY: targetname
Value: trigger_mush
Share |
LennardN95
General Member
Since: Sep 9, 2009
Posts: 35
Last: Oct 26, 2009
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Tuesday, Sep. 29, 2009 12:37 pm
So the entire script should now be:

Quote:

main()
{
thread gate();
}

gate()
{
trigger = getent("trigger_mush","targetname");
gate = getent("gate","targetname");
while(1)
{
trigger waittill("trigger", user);

user iprintlnbold ("^2Access Granted");
wait .5;
gate rotateYaw (-90, 2, 0.5, 0.5);
gate waittill("rotatedone");
wait 5;
gate rotateYaw (90, 2, 0.5, 0.5);
gate waittill ("rotatedone");
}
}


i dont know what you mean with the bolded text, should i remove that or just keep it? and i wanna shoot the trigger, shouldnt it be:

trigger waittill("trigger", user);

Thx!
Share |
LennardN95
General Member
Since: Sep 9, 2009
Posts: 35
Last: Oct 26, 2009
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Tuesday, Sep. 29, 2009 12:40 pm
and the gate should be a script_brushmodel right?
Share |
LennardN95
General Member
Since: Sep 9, 2009
Posts: 35
Last: Oct 26, 2009
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Tuesday, Sep. 29, 2009 12:43 pm
Never mind, it works!

Only it doesn't say Access Granted.

But thank you SOOOOOOOO MUCH :D
Share |
LennardN95
General Member
Since: Sep 9, 2009
Posts: 35
Last: Oct 26, 2009
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Tuesday, Sep. 29, 2009 03:12 pm
Already found out, i just had to remove "user".

THX GUYS!
Share |
Restricted Access Topic is Locked
Page
Previous 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

»