Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Commands->Clear_Weapons( obj ) causes crash?
Commands->Clear_Weapons( obj ) causes crash? [message #240956] Wed, 24 January 2007 10:39 Go to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Does anyone know why using Commands->Clear_Weapons causes Renegade to crash? I am trying to use it on infantry units, but for some reason every time the condition for it to occur happens, Renegade crashes. If I comment out the line and recompile it stops crashing...

I assume SSAOW must use this for the butter fingers crate, so I can't understand why it won't work for me...


http://steamsignature.com/card/1/76561197975867233.png
Re: Commands->Clear_Weapons( obj ) causes crash? [message #240957 is a reply to message #240956] Wed, 24 January 2007 10:42 Go to previous messageGo to next message
Rev
Messages: 51
Registered: November 2004
Karma: 0
Recruit
Are you sure obj is set to a gameobject? Do you have a check to make sure it is?

...
Re: Commands->Clear_Weapons( obj ) causes crash? [message #240958 is a reply to message #240956] Wed, 24 January 2007 10:43 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
The script is attached to an infantry unit, and I am using the default obj variable which is part of the parameter list for the Custom event so it must be a gameObject...

http://steamsignature.com/card/1/76561197975867233.png
Re: Commands->Clear_Weapons( obj ) causes crash? [message #240959 is a reply to message #240956] Wed, 24 January 2007 10:52 Go to previous messageGo to next message
Rev
Messages: 51
Registered: November 2004
Karma: 0
Recruit
Well then I do not know why it would crash.

All i can say is try
if (obj) { Commands->Clear_Weapons(obj) }
See if it crashes with that. If not then it would not be set right.


...
Re: Commands->Clear_Weapons( obj ) causes crash? [message #240982 is a reply to message #240956] Wed, 24 January 2007 13:25 Go to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
I wonder if the problem is that it does not work in single player LAN mode ? Can anyone confirm this?

I will try your suggestion in the morning, I am fed up of watching renegade crash for today Razz


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Wed, 24 January 2007 13:28]

Report message to a moderator

Previous Topic: Renegade online voice commands
Next Topic: Any chance that..
Goto Forum:
  


Current Time: Thu Nov 21 11:59:20 MST 2024

Total time taken to generate the page: 0.00676 seconds