Jump to content
Sign in to follow this  
galzohar

Is there a scripting command(s) that makes player/unit drop a weapon?

Recommended Posts

Title says it all. Can you force a weapon to be dropped via scripting? Never noticed any command that could possibly do that but then again the search on the biki isn't spectacular.

Share this post


Link to post
Share on other sites

Thanks, that should do it.

If gear dialog is open, is there a way to detect what object it is open with in order to drop the weapon back to where it was picked up from? Otherwise I'll just always drop it on the ground.

Also, is there a way to run the check only when gear dialog is closed rather than running a loop constantly?

Edited by galzohar

Share this post


Link to post
Share on other sites

Run this clientside and it will most likely tell you if a dialog is opened, though im only taking that from the text in BIKI link, so might not work.

http://community.bistudio.com/wiki/dialog

Also, why not just use nearestObjects and have a list for each objects position on your rack or table...

If one weapon is missing from one of the positions, and one weapon is not in any of the positions, then move that weapon to the empty position..

Im am thinking that you are maybe trying to do something easy more difficult.

May i ask what the purpose is?

Share this post


Link to post
Share on other sites

I'm considering adding some sort of class-specific system where some people just don't know how to use some stuff. Still not sure how much it would add to the mission though and how much extra work it'll require. The basics are mostly working, though, but with a running loop. I'll try that dialog command.

Share this post


Link to post
Share on other sites
I'll try that dialog command.

I think you can use it like this:

if (dialog) then {CloseDialog 0;};

That should effectively check if a dialog is open, if so close it.

I wish they'd expand on the commands and let us go if(dialog 5000) then {CloseDialog 5000}; so I could close dialog 5000 if it's up, but right now just looks for any dialog and closes the one up.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×