Page 1 of 1

Mission scripting questions

Posted: Thu Dec 03, 2009 12:44 pm
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:

Re: mission scripting questions

Posted: Thu Dec 03, 2009 12:47 pm
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)

Re: mission scripting questions

Posted: Thu Dec 03, 2009 12:51 pm
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.

Re: mission scripting questions

Posted: Thu Dec 03, 2009 5:27 pm
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.

Re: mission scripting questions

Posted: Thu Dec 03, 2009 6:32 pm
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.

Re: mission scripting questions

Posted: Fri Dec 04, 2009 4:21 am
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.

Re: Mission scripting questions

Posted: Fri Dec 04, 2009 9:01 am
by Teancum
You haven't told use what you wanted to do. OnEnterVehicle() is an event, not a function.

Re: Mission scripting questions

Posted: Fri Dec 04, 2009 11:12 am
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.

Re: Mission scripting questions

Posted: Fri Dec 04, 2009 12:33 pm
by Teancum

Re: Mission scripting questions

Posted: Sat Dec 05, 2009 10:18 am
by [Skirata]Darman[M]
Thanks... :mrgreen: