[Help] Forcing act on object please.

Post » Tue Dec 29, 2009 8:37 am

I'm trying to force the act on one of those ham radio's while avoiding the use of Activate, I've tried PlayGroup and PlayIdle but they do not appear to do anything, is there some way to make the dial sweep without using Activate?
User avatar
Madeleine Rose Walsh
 
Posts: 3425
Joined: Wed Oct 04, 2006 2:07 am

Post » Tue Dec 29, 2009 1:29 pm

Ok, lets try another question

I'm trying to get Showmessage to display a float variable, these are the formats I've tried without success

Showmessage msgref var
Showmessage msgref:var

I've created a msg which just displays for 2 seconds and works, but the value from the variable does not show, any ideas please?
User avatar
Mackenzie
 
Posts: 3404
Joined: Tue Jan 23, 2007 9:18 pm

Post » Tue Dec 29, 2009 2:33 pm

Ok guys, I figured out the ham radio, it's logical and yet not logical, the command is usually only indicated for use on doors.

To force a ham radio into a particular state use the SetOpenState command
RadioREF.SetOpenState 0 ; turns the radio off.RadioREF.SetOpenState 1 ; turns the radio on.

Or if the script is already attached to the radio you can leave out the name "RadioREF."

I hope this is useful to others.
User avatar
Prohibited
 
Posts: 3293
Joined: Tue Jun 12, 2007 6:13 am

Post » Tue Dec 29, 2009 9:11 am

It's me again, back for more help, anyone know the function for returning the weight of items within a "container"?

Thanks in advance.
User avatar
He got the
 
Posts: 3399
Joined: Sat Nov 17, 2007 12:19 pm

Post » Tue Dec 29, 2009 3:09 am

It's me again, back for more help, anyone know the function for returning the weight of items within a "container"?

Thanks in advance.


GetAV InventoryWeight
Might not work on non-Actors, though.

For showing a float in a message, have the message include %f and the ShowMessage command should be like this:

ShowMessage MessageName fVariable

So if your message is "Float: %f" and fVariable equalled '12.5', you'd get "Float: 12.5" showing up.
User avatar
Mashystar
 
Posts: 3460
Joined: Mon Jul 16, 2007 6:35 am

Post » Tue Dec 29, 2009 10:29 am

Thanks Langy, very helpful, at least the message one in any case, GetAV does only work on actors, guess I'll have to find another way for containers.
User avatar
Esther Fernandez
 
Posts: 3415
Joined: Wed Sep 27, 2006 11:52 am


Return to Fallout: New Vegas