Jump to content

Scripting for creating a working Gunblade


Emassion
 Share

You are about to reply to a thread that has been inactive for 4717 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Im trying to get the scripting to work with a working gun and the script and animations for sword play. every attempt has ending in a scripting conflist that one or both of the used scripts fail.

Can someone help me if possible create the scripting and will work out payment, with item or full payment of the script?

Link to comment
Share on other sites

This forum is really for helping people who're working on their own scripts -- if you want to hire someone to write the whole thing for you, you would do better asking over at  http://community.secondlife.com/t5/Wanted/bd-p/Wanted 

Having said that, if I were doing it, I think I would simply combine the two scripts into one, with a sword state and a gun state, and switch between them depending on what I wanted the weapon to be doing at any one time.    That seems to me the easist way to handle a situation in which you want the script to react in very different ways to events, depending on the circumstances (like vehicles often have a state flying and a state on_ground, depending on whether they're flying or driving like a car).

Link to comment
Share on other sites

Like I said, if I were doing it, I would use a single script with two distinct states, state being_a_gun and state being_a_sword, and have the item switch between them depending on chat commands.    That way, it's easy to have it respond apppropriately -- play the right anims for fighting with a sword or firing a gun, fire bullets if necessary and so on -- to the same control event, depending on what state it's in at the time.

I strongly suspect that, since you've got two different scripts, each wants to do something different when you click the left mouse button or whatever, and they end up fighting.   Using states in the same script, rather than two separate scripts each doing its own thing, would be a good way to avoid that.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4717 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...