UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

A quick question about a custom EE

broken avatar :(
Created 6 years ago
by Swag_Chesse_xo1
0 Members and 1 Guest are viewing this topic.
3,079 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 18 February 2018
Last active: 3 years ago
Posts
88
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
lol
×
Swag_Chesse_xo1's Contact & Social LinksLordSpaceCato0JayWolf0o
I found a post from two years ago showing a script giving me the option to use or shoot 3 objects then give the player a reward. However, the script says this:    " //reward here, spawn pap, or weapons, or whatever "
I don't know what to put for it to open up a door for PAP. I know all the basic concepts of C/C++ but i dont know the in-game commands. My guess would be:
open_door(targetname; pap_door);      or something like that.
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: vn
Date Registered: 23 February 2015
Last active: 4 years ago
Posts
208
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
×
Joeycx's Groups
Joeycx's Contact & Social Links
Script_brushmodel, with the kvp key "targetname" and the value "pap_door", I'm only guessing.
broken avatar :(
×
broken avatar :(
Location: fr
Date Registered: 3 June 2015
Last active: 3 months ago
Posts
45
Respect
Forum Rank
Legless Crawler
Primary Group
Community Mapper Elite
My Groups
More
My Contact & Social Links
More
×
IZaRTaX's Groups
Community Mapper Elite Has shown excellence and experience in the area of custom mapping in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
IZaRTaX's Contact & Social LinksIZaRTaX
Here is a quick example, don't forget to put the origin texture if you use a rotating door

(example for a double rotating doors)


then the script (example)

Spoiler: click to open...
secret_door()

{

    wood_door1 = getEnt("wood_door1", "targetname"); //BIG DOORS
    wood_door2 = getEnt("wood_door2", "targetname"); //BIG DOORS

    trigger = getent ("your_door","targetname"); // example

    trigger waittill ("trigger");
 

    wood_door1 rotateYaw( -130, 1.4 ); // RotateYaw( <yaw angle>, <time>, <acceleration time>, <deceleration time> )
    wood_door2 rotateYaw( 130, 1.4 );

    sound_ent = spawn("script_origin",  wood_door1.origin); // add a sound
    wait_network_frame();
    sound_ent playsound("door_wood9"); // alias

    wood_door1  NotSolid();
    wood_door1  connectpaths();
 
    wood_door2  NotSolid();
    wood_door2  connectpaths();

}

If you want to add a slide door you can remove the rotate function by movex (-130,1.4,0.1,2); //MoveZ( <zvalue>, <time>, <acceleration time>, <deceleration time> )

//(movey and movez also works that depend of your angles)
Last Edit: May 27, 2018, 09:58:43 am by IZaRTaX
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 18 February 2018
Last active: 3 years ago
Posts
88
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
lol
×
Swag_Chesse_xo1's Contact & Social LinksLordSpaceCato0JayWolf0o
I am just looking for the command to open a single door which should be just one just of code.
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 3 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
respect the dead

donates greatly appreciated :) paypal.me/F3ARxReaper666
discord server:
https://discord.gg/tsGHW99
×
death_reaper0's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
its not just one line, the one IZaRTaX made above is along the lines of what you need
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 18 February 2018
Last active: 3 years ago
Posts
88
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
lol
×
Swag_Chesse_xo1's Contact & Social LinksLordSpaceCato0JayWolf0o
Not really since what I'm using is not a rotating door I'm just removing some debris.
broken avatar :(
×
broken avatar :(
Location: vn
Date Registered: 23 February 2015
Last active: 4 years ago
Posts
208
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
×
Joeycx's Groups
Joeycx's Contact & Social Links
https://www.ugx-mods.com/forum/scripting/11/opening-door-script/3922/

This is probably the script you were using, right?
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 5 years ago
Posts
6,877
Respect
1,006Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
Not really since what I'm using is not a rotating door I'm just removing some debris.
well clearly you know better than us - why are you asking? You already know

good luck ;)
Marked as best answer by Swag_Chesse_xo1 6 years ago
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 3 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
death_reaper0's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
well still its not 1 line, the bare minimum is probbably 3 lines

Code Snippet
Plaintext
door = getent("DOOR_TARGETNAME","targetname");
door connectpaths();
door delete();

this wont look nice and isnt a proper way to do it but hey if thats what you want  :-\
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 18 February 2018
Last active: 3 years ago
Posts
88
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
lol
×
Swag_Chesse_xo1's Contact & Social LinksLordSpaceCato0JayWolf0o
door = getent("DOOR_TARGETNAME","targetname");
door connectpaths();
door delete();

Thank you, but does the door have to be a prefab?
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 3 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
death_reaper0's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
no  ???
its a script brush with a targetname of your choice 
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 2 years ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
Signature
Aye mate you don't know me so y don't you shut tf up ok buddy :)

×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
Contradicting help and answers when he's "new" lol, cute.

 
Loading ...