okay, i tried scripting my blob and it was hard to do.
i'm basing it of the script from the demo (am i allowed to do that?).
i just want to kill ducking and running, and replace the weapons with the ones i made, and use the model i made.
can you help?
i tried and i deleted it without thinking after it didn't work, so i cannot show you the one i made.
heres the script:
i would post it, but it wont let me.
tipewriter Wrote:okay, i tried scripting my blob and it was hard to do.
i'm basing it of the script from the demo (am i allowed to do that?).
i just want to kill ducking and running, and replace the weapons with the ones i made, and use the model i made.
can you help?
i tried and i deleted it without thinking after it didn't work, so i cannot show you the one i made.
heres the script:
i would post it, but it wont let me.
It's fine to base things off of the demo scripts -- that stuff is mine and OK to use. The artwork is the stuff other people did for me.
OK, let's start this over. What script did you base it on, and what *different* things (let's do one at a time) do you want it to do?
[>] Brian
Yes you are allowed to use any scripts from the demo.
Running:
Easiest thing to do is just put
obj.setting.singleSpeed=true
in the player construct
Crouching:
Likewise just put
obj.setting.duck=false
in the player construct (i think)
Player Model:
Easiest thing to do is just rename your blob model 'Player', and take the other player model out of the models folder. You'll want to make sure all the animations have the same names in both the script and the new model.
Weapons:
At the top of the player script is a function that looks like this
var weapons=new Array(6);
First change the number to however many weapons you have. The function right above this one explains what all the parts mean, and is pretty self explanatory. For instance, in the hammer weapon:
a- Named Hammer b-Uses bitmap hammer icon c-Uses mesh Hammer d,e,f- doesn't have clips, ammo, or alt ammo.
You can post scripts just by copying and pasting them in, into the
Code:
Code tag, which looks like the # sign in the upper right corner.
Edit: sorry Brian. I take way too long to type. Btw, I'm assuming you are basing this off the player script.
*this is in response to the title thread*
Lol, I copied a whole a whole hammer script and changed it to be a fist, I thought it would be difficult, it wasn't in a kind of way but still was very difficult (cause i've never actually made all the preparations), the hammer script itself wasn't hard but for a first time, quite but although it was time consuming and frustrating because I had to go back and forth on things, I did what I thought was right, and if that was wrong, just changed it. It was quite quick and the only thing I really spent time on was the hand model (though i was really aiming for the script aswell), nothing else matters until it works (I think).
what I'm saying here is that you probably need to make lots of simple things that do what you want till you know what to do with the real thing (sorry if you already have)
People if you ask, i guess this was a kind of scripting noob to scripting noob speech lol (because I am one lol)
Tell me if you are confused, I hope this thread was at least a little helpful, tell me if it's not and I'll delete this post
[edit] don't forget the docs of course! ( I have yet to find out how they work and I will keep trying!)
okay thanks guys.
doing right now.
Ive got ten weaps that took me like 1 week and a half to make :P
If you dowload the Exin weapons beta from the exin thread youll see :P
yeah but most people here use mac and didn't you say it was a windows zip?
Aren't they the same? I zip stuff and give it to windows people! I've never done it the other way but I'd expect it to work as well.
The download doesn't work yet though, does it?
slapstick: What don't you understand about the docs? If you find the obj section, then go to the motionVector section, then find walkToPlayer();, all you have to do is combine them to obj.motionVector.walkToPlayer(); and remember the correct caps

.
*quiver*........ *quiver*......*quiver* .........*quiver*...........
*quiver*......... *quiver*
yeah lol real helpful ... maybe it is just my terrible inexperience in coding :S
but whatever about the zip being windows or whatever, it doesn't work!
ccccc Wrote:Aren't they the same? I zip stuff and give it to windows people! I've never done it the other way but I'd expect it to work as well.
The download doesn't work yet though, does it?
You're right. A zip is always the same, if windows or mac doesn't matter.
The problem is the download. It doesn't download the file at all. You only get a 0KB file named "Exin". :/