Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Help With Scripting specifically Facing
Re: Help With Scripting specifically Facing [message #239784 is a reply to message #239726] Thu, 18 January 2007 07:50 Go to previous messageGo to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3807
Registered: July 2006
Location: USA
Karma:
General (3 Stars)
danpaul88 wrote on Thu, 18 January 2007 04:03

How about doing it similar to how the jfw_base_defense scripts make the turret point at 3 random places?

Spawn an Invisible_Object a few meters away from the player in the direction you want them to look, and then have them look at it? You might have to use some trigonometry to work out the correct position for the box though..


Now there is a idea, but I hate trigonometry, so I will go into RenX make a model with a bone 1 meter away from the origin on the Y axis, then save it. Then I will use the direction facing script to change its rotation. Then the script will attach an invisible box to the bone and the script will get the invisible boxe's ID. Finally the script will do a look at object type of thing and use the ID to look at it.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CnC Reborn
Next Topic: ramjet stand?
Goto Forum:
  


Current Time: Fri Aug 30 09:28:58 MST 2024

Total time taken to generate the page: 0.00766 seconds