Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Help With Scripting specifically Facing
Help With Scripting specifically Facing [message #239488] Tue, 16 January 2007 17:18 Go to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3811
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Does anyone know if there is a script command to make an infantry change directions, I have messed with set_facing for about an hour but it doesn't seem to effect the infantry.

[Updated on: Tue, 16 January 2007 17:44]

Report message to a moderator

Re: Help With Scripting specifically Facing [message #239686 is a reply to message #239488] Wed, 17 January 2007 19:27 Go to previous messageGo to next message
Veyrdite is currently offline  Veyrdite
Messages: 1471
Registered: August 2006
Location: Australia, Sydney
Karma: 0
General (1 Star)
well, you could make a script the make the game think the player press the tunaround key (x) but thats only 180

Edit: wait, the script must exist. entering buildings in mp practice, and the tutorial do it


WOL: Veyrdite Previously: Dthdealer ( a long time ago )

[Updated on: Wed, 17 January 2007 19:28]

Report message to a moderator

Re: Help With Scripting specifically Facing [message #239706 is a reply to message #239686] Wed, 17 January 2007 22:33 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3811
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
dthdealer wrote on Wed, 17 January 2007 19:27

well, you could make a script the make the game think the player press the tunaround key (x) but thats only 180


Unfortunately I need the game to force you to turn a given degree.

dthdealer wrote on Wed, 17 January 2007 19:27


Edit: wait, the script must exist. entering buildings in mp practice, and the tutorial do it

Unluckily that is a look at position script, and to my knowledge, can not currently be rigged up to look at a directional degree.


Re: Help With Scripting specifically Facing [message #239726 is a reply to message #239488] Thu, 18 January 2007 04:03 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
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..


http://steamsignature.com/card/1/76561197975867233.png
Re: Help With Scripting specifically Facing [message #239779 is a reply to message #239488] Thu, 18 January 2007 07:42 Go to previous messageGo to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
Use a daves arrow?
Re: Help With Scripting specifically Facing [message #239783 is a reply to message #239488] Thu, 18 January 2007 07:48 Go to previous messageGo to next message
Sir Kane
Messages: 1701
Registered: March 2003
Location: Angerville
Karma: 0
General (1 Star)
The building thing in MP practice uses Force_Camera_Look.
You could spawn an invisible object and use Lock_Soldier_Facing.

Edit: turned ";" into ".".


Proud N9500 and proud N6270 user. Creator of the IEE libraries (original bhs.dll) and the RB series software.
http://n00bstories.com/image.fetch.php?id=1189992501http://www.n00bstories.com/image.fetch.php?id=1257492907

[Updated on: Thu, 18 January 2007 07:54]

Report message to a moderator

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 next message
Jerad2142 is currently offline  Jerad2142
Messages: 3811
Registered: July 2006
Location: USA
Karma: 6
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.


Re: Help With Scripting specifically Facing [message #239786 is a reply to message #239783] Thu, 18 January 2007 07:51 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3811
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Silent Kane wrote on Thu, 18 January 2007 07:48

The building thing in MP practice uses Force_Camera_Look.
You could spawn an invisible object and use Lock_Soldier_Facing;

I was typing up my version of danpaul88's idea, when you put that up.


Re: Help With Scripting specifically Facing [message #239810 is a reply to message #239488] Thu, 18 January 2007 08:58 Go to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
heh, it's messy but it should work ^^

I also hate trigonometry Razz


http://steamsignature.com/card/1/76561197975867233.png
Previous Topic: CnC Reborn
Next Topic: ramjet stand?
Goto Forum:
  


Current Time: Wed Nov 27 19:54:35 MST 2024

Total time taken to generate the page: 0.00815 seconds