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

Members Online

»
0 Active | 8 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: World at War
Category: CoDWW SP Mapping
Call of Duty: World at War single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Weapon Objective
Tyger_Glenn
General Member
Since: Oct 15, 2005
Posts: 35
Last: Jun 3, 2009
[view latest posts]
Level 2
Category: CoDWW SP Mapping
Posted: Tuesday, Jun. 2, 2009 01:28 pm
Working on a Sp/Co-OP map.

Placed a weapon in map as a objective but player cant pick it up. The script activates it and the hand comes up but you cant pick it up.

Here is my settings for weapon:
Code:

classname - script_model
model - weapon_ger_panzerschreck_at_obj
targetname - auto1928



Settings for trigger:
Code:

target - auto1928
classname - trigger_use
targetname - panzerschreck trig


Script:
Code:

objective_add(1, "active", "Get a Panzerschreck anti-tank weapon from the church", getent ("panzerschreck","targetname").origin);
objective_current(1);
getent ("panzerschreck trig","targetname") notify ("infinite panzerfaust objective on");


Trigger covers weapon completely.

Any help would be nice.

[banghead]
Share |
SparkyMcSparks
General Member
Since: Feb 28, 2004
Posts: 1713
Last: Dec 29, 2016
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoDWW SP Mapping
Posted: Tuesday, Jun. 2, 2009 11:50 pm
Code:

// Get Model
model =  getEnt ( "auto1928", "targetname" );
assert( model );

// Get Trigger
trig = getEnt( "panzerschreck trig","targetname" );
assert( trig );

// List Objective
objective_add( 1, "active", "Get a Panzerschreck anti-tank weapon from the church", model.origin );
objective_current( 1 );
trig notify ( "infinite panzerfaust objective on" );

trig waittill ( "trigger", instigator );

// Remove Weapon (If you want to)
/*
model hide();
model delete();
*/

// Player Who Triggered Only
instigator giveWeapon( "panzerschrek" );

// All Players (If you want to)
/*
players = get_players();
for( x = 0 ; x < players.size ; x++ )
{
players[ x ] giveWeapon( "panzerschrek" );
}
*/

// Next Objective
Objective_State( 1, "done" );
//objective_add( 2, "active", "Objective 2" );
//objective_current( 2 );


edited on Jun. 2, 2009 07:51 pm by SparkyMcSparks
Share |
Tyger_Glenn
General Member
Since: Oct 15, 2005
Posts: 35
Last: Jun 3, 2009
[view latest posts]
Level 2
Category: CoDWW SP Mapping
Posted: Wednesday, Jun. 3, 2009 12:48 pm
Thanks, but still cant pick it up
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty: World at War : CoDWW SP 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

»