Script Request [message #268958] |
Tue, 26 June 2007 15:29 |
|
Oblivion165
Messages: 3468 Registered: June 2003 Location: Hendersonville, North Car...
Karma: 0
|
General (3 Stars) |
|
|
Outline:
Input: Allow Ground Vehicle
Sub Input - Only this preset
Sub Input: Attach Script
Sub Input: Attach Script
Sub Input: Attach Script
Sub Input2 - Only this preset
Sub Input: Attach Script
Sub Input: Attach Script
Sub Input: Attach Script
Input: Allow VTOL Vehicle
Sub Input - Only this preset
Sub Input: Attach Script
Sub Input: Attach Script
Sub Input: Attach Script
Sub Input2 - Only this preset
Sub Input: Attach Script
Sub Input: Attach Script
Sub Input: Attach Script
Input: Allow Any Vehicle 0 or 1
Sub Input: Attach Script
Sub Input: Attach Script
Sub Input: Attach Script
Input: Max Distance
I could really use a script that would have a bot get into a vehicle under the conditions above. Basically all it would need to do is check the vehicle preset (If it's restricted to yes) and then have the bot run over to it, get in and attach selected scripts to add ai and disable transitions etc.
Any help would be greatly appreciated
WOL: Ob165ion Skype: Oblivion165 Yahoo Instant Messenger: CaptainJohn165
|
|
|
Re: Script Request [message #269182 is a reply to message #268958] |
Wed, 27 June 2007 11:25 |
|
Oblivion165
Messages: 3468 Registered: June 2003 Location: Hendersonville, North Car...
Karma: 0
|
General (3 Stars) |
|
|
Bump.
I'll only bump this the one time.
WOL: Ob165ion Skype: Oblivion165 Yahoo Instant Messenger: CaptainJohn165
|
|
|
|
Re: Script Request [message #269230 is a reply to message #268958] |
Wed, 27 June 2007 15:10 |
|
Oblivion165
Messages: 3468 Registered: June 2003 Location: Hendersonville, North Car...
Karma: 0
|
General (3 Stars) |
|
|
There is already a script for it but it is limited. I'm sure it just removes the bot but it does the "entrance" in a believable way. For the life of me i can't remember what its called but I used it on the A New Hope SP mission. The pilots all ran out and got into the craft.
WOL: Ob165ion Skype: Oblivion165 Yahoo Instant Messenger: CaptainJohn165
|
|
|
|
Re: Script Request [message #269308 is a reply to message #268958] |
Thu, 28 June 2007 03:25 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma: 0
|
General (5 Stars) |
|
|
I suspect the infantry bots were just commanded to goto the vehicle they were supposed to get into, and once they got there it would make them enter the vehicle ( timer to check how close they are, since the action_complete event does not get called properly when bots reach the end of their waypath ).
Once they get to the vehicle you just delete the bot and give the vehicle whatever AI related scripts you want. I have a custom vehicle AI class that I create subclasses of for various different types of AI: Offensive, defensive, stationary turret, and all have parameters that allow you to specify in Level Edit what priority it should give to each type of target (EG: A machine gun type weapon would prioritise infantry and light vehicles, whereas a cannon type weapon would prioritise heavy vehicles)
If your only controlling access based on whether the vehicle is a ground of VTOL vehicle use the IsVTOLVehicle and IsVehicle scripts to check if its allowed to use them ( cant remember off the top of my head their exact names, its something like that ).
NB: A VTOL vehicle will ALSO return true on IsVehicle, so make sure to check if its a VTOL first, and then check if its a ground vehicle.
[Updated on: Thu, 28 June 2007 03:28] Report message to a moderator
|
|
|
Re: Script Request [message #269469 is a reply to message #268958] |
Thu, 28 June 2007 17:05 |
|
Oblivion165
Messages: 3468 Registered: June 2003 Location: Hendersonville, North Car...
Karma: 0
|
General (3 Stars) |
|
|
I would gladly do it myself if i had even 1% ability in c++. VB 6.0, sure but C++ is out of my range completely.
WOL: Ob165ion Skype: Oblivion165 Yahoo Instant Messenger: CaptainJohn165
|
|
|
Re: Script Request [message #269527 is a reply to message #268958] |
Thu, 28 June 2007 22:52 |
Genesis2001
Messages: 1397 Registered: August 2006
Karma: 0
|
General (1 Star) |
|
|
Wouldn't the script work if you had the bot like walk up to a vehicle as you said and then the script kills the bot and immediately attaches any AI scripts to the vehicle?
-MathK1LL
|
|
|
Re: Script Request [message #269604 is a reply to message #268958] |
Fri, 29 June 2007 08:31 |
|
Oblivion165
Messages: 3468 Registered: June 2003 Location: Hendersonville, North Car...
Karma: 0
|
General (3 Stars) |
|
|
Negatory, I'm going to have upwards of 50-75 bots on each team active at anytime. They would need to be controlled a little more than that to make the gameplay smooth.
WOL: Ob165ion Skype: Oblivion165 Yahoo Instant Messenger: CaptainJohn165
|
|
|