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

Members Online

»
0 Active | 56 Guests
Online:

LATEST FORUM THREADS

»
New BF2 Mod
BF2 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: World at War
Category: CoDWW Scripting
Scripting and coding with Call of Duty: World at War.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Secret weapon!
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2725
Last: May 17, 2016
[view latest posts]
Level 9
Category: CoDWW Scripting
Posted: Saturday, Aug. 20, 2011 01:46 pm
Hi, im currently making a codwaw map, and i was looking to have 3 scarecrows dotted about my map, with a trigger_damage across them, and if they are all activiated it makes a raygun appear from a wall, which is then buyable for the set price (which is 10000) i was wondering how would i go about this?

Thanks, Ukdjaj[thumbs_up]
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2725
Last: May 17, 2016
[view latest posts]
Level 9
Category: CoDWW Scripting
Posted: Saturday, Aug. 20, 2011 01:55 pm
ummm, i had a fast go at it myself, but i dont know about the values, as the raygun and the raygun trigger that you need to buy it from the wall are already set, and i dont know if it will still work, also how would i go about adding so more triggers have to be activated?
Code:
main()
{
thread spawnray();
}

spawnray()
{
	trig = getent( "trig1","targetname" );
	raygun = getent( "auto1", "targetname" );
	raygun_trigger = getent ( "weapon_upgrade", "targetname" );
	raygun_trigger enablelinkto();
	raygun_trigger linkto(raygun);
	
	
while(1)
{
	trig waittill( "trigger", player );
	
	if( isPlayer( player ) && player isTouching( trig ) && isAlive( player ))
	{
		raygun movex(50,2);
		}
		else
		{

		}
	}
}


Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2725
Last: May 17, 2016
[view latest posts]
Level 9
Category: CoDWW Scripting
Posted: Saturday, Aug. 20, 2011 03:49 pm
also, is there a way to have the wunderwaffle dg2 on the wall? i cant see the weapon files for it.

I have a raygun on the wall, but i dont know what to call the wunderwaffle up as :L help on that too ;D
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty: World at War : CoDWW 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

»