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!I've already seen this being talked about. I'm very very new to all this and was wondering how I'd go about making this script open a door if anyone can help me this would mean a lot to me and others.
Well you can store their current weapon(s) in a variable then give them a new one.
Once its over you can give them the weapons from the stored variable.
I'm not going to write a script for you but since you are making your own shooting range I would expect you at least know how to script.
This moves the "door"
door1 = GetEnt("door1", "targetname");
door1 MoveTo((-16, 80, 9), 0.5, 0.05, 0.05);
or this rotates the door.
door1 = GetEnt("door1", "targetname");
door1 RotatePitch( -5, 0.26, 0.15, 0.1 );
use a script origin to get coordinates
**MoveTo((coordinate, coordinate, coordinate), 0.5, 0.05, 0.05);
0.5=The time to move the entity in seconds
0.05=The time spent accelerating
0.05=The time spent decelerating
RotatePitch( -5, 0.26, 0.15, 0.1 );
-5=The new pitch angle in degrees
0.26=The time to rotate in seconds
0.15=The time spent accelerating in seconds
0.1=The time spent decelerating in seconds
info from - http://www.zeroy.com/Script/
What I mean't was if it wasn't possible with a single function just do the give_perk function for every perk at once.
Ill look right now and see if they made a function for giving them all at once.
EDIT:
It doesn't look like tryarch made a function for giving all perks.
You can just give the player every perk at the same time and it will essentially be the exact same.
If you are still having trouble with giving perks, make sure this is included in the script:
and for the perkname just look inside _zm_perks.gsh for all the names.(root/share/raw/scripts/zm/_zm_perks.gsh)
I think this was a mistake when HitmanVere edited it, ill fix it since function wasn't supposed to be there in the first place.
Re do the part where the script is made, at the top where the functions are threaded they are supposed to be
Just updated OP.
Thanks for fixing all the problems, should have tested it sooner since I wrote this from memory cause I couldn't get on steam at the time.