Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Underground bot.
Re: Underground bot. [message #298996 is a reply to message #298901] Mon, 26 November 2007 01:39 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Havester Explosion
Next Topic: hud.ini
Goto Forum:
  


Current Time: Wed Aug 14 08:17:38 MST 2024

Total time taken to generate the page: 0.00938 seconds