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

Members Online

»
0 Active | 140 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: beginner question, how many build-in events in scripting ?
zbw
General Member
Since: Jan 1, 2011
Posts: 22
Last: Mar 22, 2011
[view latest posts]
Level 1
Category: CoDWW Scripting
Posted: Monday, Feb. 7, 2011 01:56 am
I always find many events used in waittill and so on
Is that pre-defined?
and where i could find a list or a explain of the events?
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoDWW Scripting
Posted: Monday, Feb. 7, 2011 03:18 am
I'm not sure what you mean. Events?
Share |
zbw
General Member
Since: Jan 1, 2011
Posts: 22
Last: Mar 22, 2011
[view latest posts]
Level 1
Category: CoDWW Scripting
Posted: Monday, Feb. 7, 2011 07:37 am
sorry,i am a beginner.I don't konw how to call it exactly.
the events always are used with waittill() func.
For example,Here a trigger_damage.
Code:
self waittill ("damage", amount,attacker, direction_vec, point, type);

Here the string "damage", that's what i mean.
my question is :
1.I want to know how and where the events("damage") are defined
2. waittill() is a func?
3.If the string is a pre-defined event(I guess that,because i don't define it as well as the follows var) ,How about other event.
4.The follow var (amount ,attacker...),I dont define them either.
Where to find the declare?
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoDWW Scripting
Posted: Sunday, Apr. 3, 2011 11:23 am
no, there are no predefined "events"

waittill() is a function, built into the game engine

self waittill("damage", ...); will wait until it "recieves" the damage before it continues with the below code

the damage message can be "send" by the following command:

self notify("damage", ...); // i asume "self" refers to the same entity as in the waittill command

Also see here:
http://www.modsonwiki.com/index.php/Call_of_Duty_4:_Scripting_Introduction%23Notify_.2F_Endon_.2F_Waittill
Share |
BraX
General Member
Since: Apr 29, 2008
Posts: 413
Last: May 26, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoDWW Scripting
Posted: Sunday, Apr. 3, 2011 11:56 am
Code:
level notify( "game started" ); // send event

level waittill( "game started" ); // waits for event

level endon( "game started" ); // kill thread when event is received
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

»