I can't seem to get any weapons working on ATWA. The weapons script is all set up, I've checked it at least 50 times by now.
And how do you make it so only certain weapons can destroy a building?
Weapons
Point 1: well, it's a settings problem or a model problem, I reckon. Most likely your world/vehicle settings, or weapon script. Try and get a basic machinegun working (that'll determine if it's missing models that are causing the problem, cos MGs are done in code). You sure the weapon script is saved with the right name/in the right place?
Maybe post an example we can look at if so... praps someone can spot the problem. As with any scripting system it's quite easy to set something up that'll simply never work :)
Point 2: like this: http://islanddownloads.com/islands/Weapons.mts (notice the builddamage setting)
f
Maybe post an example we can look at if so... praps someone can spot the problem. As with any scripting system it's quite easy to set something up that'll simply never work :)
Point 2: like this: http://islanddownloads.com/islands/Weapons.mts (notice the builddamage setting)
f
Um. Ok. So in world settings you've got weapon selection mode to 0. You've given a vehicle its primary and secondary weapons in vehicle settings, and you've got weapons.mts in your world/data folder.
Is there any error message at all when you try to fire?
I stil say post an example from your script... just cos ur usin the default doesn't mean it's right :)
Apart from that, all I can think of is... check the file extension on weapons.mts (has windows been helpful and called it something like weapons.mts.txt?). Check it's in the right place ([world folder]/data). Check obvious things like surface properties that might stop you firing.
f
Is there any error message at all when you try to fire?
I stil say post an example from your script... just cos ur usin the default doesn't mean it's right :)
Apart from that, all I can think of is... check the file extension on weapons.mts (has windows been helpful and called it something like weapons.mts.txt?). Check it's in the right place ([world folder]/data). Check obvious things like surface properties that might stop you firing.
f
i'll be around all day so ill pop in on atwa n check it out if i see you around.
lil suggestion that might help : try changing the object= line in the weapon you're looking at to 'Object=plasma1'. There seems to be a bug with the 'Object=Projectile' weapon in the current clients so if its using that it may not work. (I'll fix that today).
Typing '.refreshweap 1' might also help - it prints some error messages if any of the lines in the weapon script are not understood by the game.
lil suggestion that might help : try changing the object= line in the weapon you're looking at to 'Object=plasma1'. There seems to be a bug with the 'Object=Projectile' weapon in the current clients so if its using that it may not work. (I'll fix that today).
Typing '.refreshweap 1' might also help - it prints some error messages if any of the lines in the weapon script are not understood by the game.
mm.. working fine for me, can't see how thered be any problem with that system..
coupla things to check..
1) its .refreshweap 1 (i.e. with a space), not .refreshweap1
2) You're not accidentally saving the weapons.mts in the client's (rather than the server's) data folder are you? Ive done that before and ended up confused when the .refreshweap just redownloads the original server file over my client one.
assuming neither of those applies, try adding a nonsense line to your weapon script and check that .refreshweap 1 reports it as an error. If that does happen you know for definite the file is being reloaded. (and if it is being reloaded ya then might wanna double-check that the weapon you're changing is the one you're using on the vehicle - thats another easy mistake that has confused me in the past..)
coupla things to check..
1) its .refreshweap 1 (i.e. with a space), not .refreshweap1
2) You're not accidentally saving the weapons.mts in the client's (rather than the server's) data folder are you? Ive done that before and ended up confused when the .refreshweap just redownloads the original server file over my client one.
assuming neither of those applies, try adding a nonsense line to your weapon script and check that .refreshweap 1 reports it as an error. If that does happen you know for definite the file is being reloaded. (and if it is being reloaded ya then might wanna double-check that the weapon you're changing is the one you're using on the vehicle - thats another easy mistake that has confused me in the past..)
- Magicfinger
- Staff
- Posts: 1078
- Joined: Tue Sep 30, 2003 10:38 am
- Location: here,there and everywhere
Even "try adding a nonsense line to your weapon script and check that .refreshweap 1 reports it as an error." doesnt do anything ??
ummmmmmmmmmmmm.... im really very confused then. That works for everyone else in the world, so you must be very 'Special' :]
umm.. only vague possibility i can think of now is that your weapons.mts file on the client has been made read-only.. i suppose that might do it.
Do weapons on other planets work as you'd expect?
ummmmmmmmmmmmm.... im really very confused then. That works for everyone else in the world, so you must be very 'Special' :]
umm.. only vague possibility i can think of now is that your weapons.mts file on the client has been made read-only.. i suppose that might do it.
Do weapons on other planets work as you'd expect?