Posts
307
Respect
101Add +1
Forum Rank
Perk Hacker
Primary Group
Community Scripter
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Wait until the player shots and use this:
Use for <start> the eye of the player (player getEye()), and for <end> a far point in front of the player.
At least this is what I did.
If you want the entity hit use:
Well this isn't necessarily true because there is bullet spread, which you can manually script to perfect accuracy, but bullet spread is random meaning the actual weapon can hit in one point within the spread while your script could end up hitting another.
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
most weapons you want the impact of are "projectile" weapons. you can use waittill("projectile_impact", weapon, impact). Cant remember if it is exactly that, but cant check at work
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
did you make the colt into a projectile weapon? otherwise it will never work..
If you did, try without the waittill "spawned_player", depending on where you call it they might have allready spawned?
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
Drag weaponfile into UGX weapons editor and change type on first page to "projectile"
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Drag weaponfile into UGX weapons editor and change type on first page to "projectile"
Edit: I also recommend you use playfx( fx, origin) instead of spawning the ent and playingfxontag. No need to make an ent for that.
To further explain:
Playfxontag has the advantage of being played on an entity while it is defined. Delete the model and the fx will stop. Best for looping fx.
Playfx has the advantage of not needing an entity and is best with "one shot" fx. For anything static playfx is usually best
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Ahh forgot there is a bit of modifications needed for a projectile weapon in the settings. Open up the IWD for my Afterlife and look at my weaponfile. I can imagine you are trying to make a custom WW? Could also look at my Atomic Levitator weaponfile in my weapons. Typically I copy and paste the zombie_colt_upgraded and change the things I want to get the settings right
Yes. That's what i would like to make. Testing it now...
Double Post Merge: August 05, 2016, 01:42:52 pm
Works perfect now. Thanks. But how can i move the fx a little bit higher?
(Image removed from quote.)
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Predicting from what your fx looks like:
In order to move a zombie, you need to spawn and link a tag_origin to the zom. Move the link. Zombies cant be moved themselves
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Any script of mine ever you have permission to use exactly, or in pieces. ESPECIALLY if you are trying to learnSpoiler: click to open...even if I felt otherwise I couldnt actually tell you that you cant because all my releases are public. Just remember to credit[close]
I also have code to do what you need that was meant for an upgrade to the atomic levitator. I can send that when I get home. It will be good to learn off of