Mission scripting questions

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
[Skirata]Darman[M]
Rebel Sergeant
Rebel Sergeant
Posts: 190
Joined: Mon Aug 10, 2009 8:47 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Imperial Center, Coruscant
Contact:

Mission scripting questions

Post by [Skirata]Darman[M] »

Hey GT some guys told me already some codes for scripting, like:

OnEnterVehicle()

or

SetupAmbush()

or something like this

My questions: How can I add this to a mission???
Where must I note it down???
And the most important:
WHAT DO I HAVE TO WRITE INTO THE BRACKETS?
I don't know, if you know, let me know so that I know what I want to know :D

THANKS :mrgreen:
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: mission scripting questions

Post by DarthD.U.C.K. »

you can learn scripting the best by looking into stockscrips or other script assets (liek the spira:besaid scripts)

(just a general tip)
User avatar
[Skirata]Darman[M]
Rebel Sergeant
Rebel Sergeant
Posts: 190
Joined: Mon Aug 10, 2009 8:47 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Imperial Center, Coruscant
Contact:

Re: mission scripting questions

Post by [Skirata]Darman[M] »

I know the base functions but I already searched in some other scripts and I havn't found an answer so I ask here to get a quick answer instead of searching for hours.
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: mission scripting questions

Post by bobfinkl »

[Skirata]Darman[M] wrote:I ask here to get a quick answer instead of searching for hours.
More like 10 seconds.

http://www.gametoast.com/forums/viewtop ... =27&t=6132

Next time check the FAQ it has most things answered, especially for such a simple question as this.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: mission scripting questions

Post by [RDH]Zerted »

You will learn more with hours of searching. The better modders got that way by spending the time to figure things out.
User avatar
[Skirata]Darman[M]
Rebel Sergeant
Rebel Sergeant
Posts: 190
Joined: Mon Aug 10, 2009 8:47 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Imperial Center, Coruscant
Contact:

Re: mission scripting questions

Post by [Skirata]Darman[M] »

bobfinkl wrote:
[Skirata]Darman[M] wrote:I ask here to get a quick answer instead of searching for hours.
More like 10 seconds.

http://www.gametoast.com/forums/viewtop ... =27&t=6132

Next time check the FAQ it has most things answered, especially for such a simple question as this.
Yeah, thank you know I know how it works with Ambushs. But the OnEnterVehicle - can someone just tell me what I should set in this brackets. It's not an Ambush I think.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Mission scripting questions

Post by Teancum »

You haven't told use what you wanted to do. OnEnterVehicle() is an event, not a function.
User avatar
[Skirata]Darman[M]
Rebel Sergeant
Rebel Sergeant
Posts: 190
Joined: Mon Aug 10, 2009 8:47 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Imperial Center, Coruscant
Contact:

Re: Mission scripting questions

Post by [Skirata]Darman[M] »

Ok, thank you for this info Teancum, I didn't know it's an event.
Now that's what I want:

I make an ambushteam, and when they spawn, they should directly enter a vehicle I placed near to them.
That's all.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Mission scripting questions

Post by Teancum »

User avatar
[Skirata]Darman[M]
Rebel Sergeant
Rebel Sergeant
Posts: 190
Joined: Mon Aug 10, 2009 8:47 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Imperial Center, Coruscant
Contact:

Re: Mission scripting questions

Post by [Skirata]Darman[M] »

Thanks... :mrgreen:
Post Reply