CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Call of Duty: Black Ops 3 Scripts Question
Call of Duty: Black Ops 3 Answered Questions
How do I spawn triggers with GSC
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CoD_Modern_Gamer" data-source="post: 20898" data-attributes="member: 26614"><p>How do I add target/targetname to trigger a door in a map?</p><p>EDIT: And how do I make a buyable weapon with a trigger.</p><p>EDIT2: As I tried to say but may not have said it good enough is that I want to add target and targetname to the trigger/weapon buy or other things that I might want to trigger/link together (maybe edit triggers in the world if possible).</p><p>I have tried to do something like this:</p><p>[CODE]function buyableWeapon()</p><p>{</p><p> trig = Spawn("trigger_use", (2300,-5350,180.75)); // This is right outside the first door in SoE for testing.</p><p> trig.targetname = "weapon_upgrade";</p><p> trig.target = "auto2197";</p><p> trig.zombie_weapon_upgrade = "shotgun_pump";</p><p> return trig;</p><p></p><p> weap = Spawn("script_model", (2297.25, -5351, 178.75)); // This is right outside the first door in SoE for testing.</p><p> weap.targetname = "auto2197";</p><p> weap SetModel("wpn_t7_shotgun_spartan_world");</p><p> return weap;</p><p>}[/CODE]I dont know but this doesnt seem to work (if you can please tell me what is wrong and how to make it work). Btw dont misunderstand the code you gave me worked but here is the code I have tried to make work... <img src="/styles/default/xenforo/smilies.emoji/people/disappointed.emoji.svg" class="smilie" loading="lazy" alt=":disappointed:" title="Disappointed :disappointed:" data-shortname=":disappointed:" /> Im not the best at coding but I feel like I have learned a bit since I started. I have learned from asking about things here on cabcon modding and from looking in the bo3 scripts that comes with the mod tools including the mod tools docs. <img src="/styles/default/xenforo/smilies.emoji/people/smile.emoji.svg" class="smilie" loading="lazy" alt=":grinning:" title="Grinning :grinning:" data-shortname=":grinning:" /></p></blockquote><p></p>
[QUOTE="CoD_Modern_Gamer, post: 20898, member: 26614"] How do I add target/targetname to trigger a door in a map? EDIT: And how do I make a buyable weapon with a trigger. EDIT2: As I tried to say but may not have said it good enough is that I want to add target and targetname to the trigger/weapon buy or other things that I might want to trigger/link together (maybe edit triggers in the world if possible). I have tried to do something like this: [CODE]function buyableWeapon() { trig = Spawn("trigger_use", (2300,-5350,180.75)); // This is right outside the first door in SoE for testing. trig.targetname = "weapon_upgrade"; trig.target = "auto2197"; trig.zombie_weapon_upgrade = "shotgun_pump"; return trig; weap = Spawn("script_model", (2297.25, -5351, 178.75)); // This is right outside the first door in SoE for testing. weap.targetname = "auto2197"; weap SetModel("wpn_t7_shotgun_spartan_world"); return weap; }[/CODE]I dont know but this doesnt seem to work (if you can please tell me what is wrong and how to make it work). Btw dont misunderstand the code you gave me worked but here is the code I have tried to make work... :disappointed: Im not the best at coding but I feel like I have learned a bit since I started. I have learned from asking about things here on cabcon modding and from looking in the bo3 scripts that comes with the mod tools including the mod tools docs. :grinning: [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Call of Duty: Black Ops 3 Scripts Question
Call of Duty: Black Ops 3 Answered Questions
How do I spawn triggers with GSC
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top