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

Members Online

»
0 Active | 102 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
Category: CoDUO Mapping
CoD United Offensive 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: scripting with trigger use problem
Pedro699
General Member
Since: Jun 19, 2006
Posts: 781
Last: Dec 18, 2010
[view latest posts]
Level 7
Category: CoDUO Mapping
Posted: Monday, Mar. 22, 2010 01:55 pm
FmF-Odin writes...
Quote:

with that player/other function, are there some great things you can do? e.g. let only a player of one team trigger it or only a player with a special name?


Yes, of course.

A couple of short examples, first filtering for team and then for a specific name:

Code:
while(1)
{
   explosion.trigger waittill("trigger",player);
   
   if(player.pers["team"] == "allies")
   {
      // do stuff
   } 
}
Code:
while(1)
{
   explosion.trigger waittill("trigger",player);
   
   if(player.name == "Fred")
   {
      // do stuff
   } 
}


Share |
FmF-Odin
General Member
Since: Jan 13, 2010
Posts: 31
Last: Sep 16, 2010
[view latest posts]
Level 2
Category: CoDUO Mapping
Posted: Monday, Mar. 22, 2010 07:14 pm
wow, thats great!
thank you!

have much ideas now [jumping]

are there some other funny things like that you like to do with triggers?

Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty : CoDUO 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

»