Underground bot. [message #298901] |
Sun, 25 November 2007 13:22 |
cnc95fan
Messages: 1261 Registered: July 2007
Karma: 0
|
General (1 Star) |
|
|
I'm developing somthing for a mod, (sorry, I can't tell what it is) but it needs to be able to go underground and surface and attack, or even move, there are so many scripts and void functions out there, that I have clue as to if there is a script which can do that.. if anybody knows, can you shed me some light please?
|
|
|
|
|
Re: Underground bot. [message #298980 is a reply to message #298901] |
Sun, 25 November 2007 23:23 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
You're going to have to make it yourself.
And it isn't going to be very easy. Unless you are making your own custom map?
|
|
|
|
Re: Underground bot. [message #298996 is a reply to message #298901] |
Mon, 26 November 2007 01:39 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
Then it will be slightly easier. Just place your bot spawners on the underground part of the map as if they are normal spawners.
You will need to make a script that checks the distance between itself and an enemy star object every i amount of seconds, where i is the frequency you want it to check for enemies in the vacinity. Then if the distance is the same or less than x amount of units away, do a get_position on the bot, then set_position on the bot position of .Z +=y amount of units. Where y is the distance between the base of the bot object and the surface of the up level ground.
Then attach this script to the bot in level edit.
It might also be cool to make an animation so the bot likes like it's getting ready to pop up through the ground. Then you could play the animation if the enemy is in the vacinity, and wait for the animation to finish before you set the new position.
[Updated on: Mon, 26 November 2007 01:42] Report message to a moderator
|
|
|
|