Location: JBPLAY \ Meteor 2 \ Help and Guidance \ Please Proofread this Back to Threads |
Howitzer89
Posts: 7 |
06 July 2007 17:56 (UK time)
I want the GameMessage to activate after passing a sector and I can't get the sector to activate the command when I pass it. ----------------------------------------------------- #title "" #author "your name here" #include meteor2 // tell M2 which functions it can use export OnMapStart; export SC_GameMessage; void OnMapStart() { } void SC_GameMessage( char *MessageText, ...) { SC_MessageBo ![]() ![]() } --------------------------------------- Here's an error visual: http://i15.photobucket.com/albums/a389/brianmv/WTFNICCAAAA.jpg Edited: 06 July 2007 21:28 You need to login to create posts in this thread. |
arezey
![]() Joined: 16 June 2005 Posts: 1599 |
11 July 2007 19:41 (UK time)
rename SC_GameMessage to something more sane (like ShowMessageBox or whatever), remove "char *MessageText, ..." and into the sector trigger, put: run ShowMessageBox You need to login to create posts in this thread. |
Howitzer89
Posts: 7 |
12 July 2007 01:56 (UK time)
How did you know to use that command? I never saw it in the list... You need to login to create posts in this thread. |
arezey
![]() Joined: 16 June 2005 Posts: 1599 |
12 July 2007 08:35 (UK time)
It doesn't have to be on that list. Actually, it shouldn't. What we are doing here is that we are defining 'ShowMessageBox' and kinda temporarly adding it to the list. This means you can use ShowMessageBox in your other functions in that same script file. The ones *inside* the functions need to be on the list. Edited: 12 July 2007 08:36 You need to login to create posts in this thread. |
Howitzer89
Posts: 7 |
13 July 2007 04:22 (UK time)
then how did you know to write "ShowMessageBox"? You need to login to create posts in this thread. |
arezey
![]() Joined: 16 June 2005 Posts: 1599 |
15 July 2007 17:11 (UK time)
You can name it anything you like. You need to login to create posts in this thread. |
|
Forums system (C) 1999-2023 by James Bunting.
Terms of Use