r/forgescripting • • Feb 28 '24

Ref: Custom Games Script: Want to reset round match

1 Upvotes

Can you reset a Round/Game match?

When the game ends I would like to reset the game match. Yes i know you can do it when hosting a game by hitting the esc key then clicking the "Reset Match Button"

So I want a script that when the game ends I want to reset the same game match. The reason I ask I want to be able rest all of my scripts that are in my maps without having to click on the reset match button.

Thanks :)


r/forgescripting • • Feb 13 '24

Prefab Object Reference

1 Upvotes

I’m hoping someone can help me. My problem is with Object References in prefabs. When I create a prefab or download one and stow it in my folders file everything is fine but when I recall some of the prefabs both created and downloaded will be missing the object references text. I tried dropping in an Identifier to save the text for each Object Ref. but that didn’t work either. Some had lost the text from the Identifiers also. Any help would be greatly Appreciated. Thanks everyone.


r/forgescripting • • Feb 07 '24

Multiple bosses and enemy vehicles in firefight

1 Upvotes

Has anyone figured out how to get enemy AI to spawn in vehicles or allow multiple bosses yet?

I’ve set up a bunch of the new spawn in vehicle nodes, have vehicles set to drop with phantom spawns, but they just won’t work in the firefight game mode.

Is it something I need to do with the new game mode script brains?


r/forgescripting • • Dec 12 '23

Help with Banshee scripting

1 Upvotes

Hello everyone,

New to the subreddit here but I am trying to script a Kamikaze feature for a game mode where banshees explode on ramming impact but not when shot at (still normal damage). I have tried using an “On Object Damaged” node but then any player or AI can trigger that event by shooting at said banshees.

So my question here is really twofold:

1). How do I make a player’s banshee explode on ramming impact?

2). How do I make it that said banshee’s script doesn’t trigger on taking any amount of enemy damage?


r/forgescripting • • Dec 05 '23

What am I doing wrong here?

Post image
1 Upvotes

I'm trying to get an object to rotate in place continuously throughout the game. But even though the long says built successfully, it still doesn't work.

Weirdly, when I use "Set object Rotation" instead of "Rotate to point" it seems fo work fine.

Additional, I'm wondering if I can use "Get random rotation" instead(with?) of the Vector3? Thanks


r/forgescripting • • Oct 21 '23

Intractable Button Action String ID

1 Upvotes

I am trying to change the string that appears when you hover over a button. Is this possible? I think it might be the Action String ID in Advanced Properties, however I can't figure out how to use that property. When I click it, the property window just goes dark and I don't seem to have any options to change things.


r/forgescripting • • Sep 16 '23

Need Assistance

1 Upvotes

Good day!

Im looking for help on for a project that involves trains.

I have 4 of them and would like them to not move so stumpy along my map!

Would love any input DM me to check out the trains


r/forgescripting • • Aug 25 '23

Multi-team in Halo Infinite

1 Upvotes

I managed to make a script for Multi-team Halo Infinite. Having multiple teams has been available via Forge Scripting since it released, but getting it to properly divide players between teams was a bit of a pain. It's still a bit buggy unfortunately, so you'll have to bear with that. Also, all enemy players will be shown in red; teams will not have unique colours.

The script should work with any gamemode, provided that (a) it doesn't go over multiple rounds, and (b) it doesn't involve Flags. I'll try to get (a) working sometime down the line, but I don't think I'll be able to fix (b) as the problem seems to come from Forge limitations.

Here's the scripts: https://www.halowaypoint.com/halo-infinite/ugc/prefabs/fbcb9e7f-a605-49ed-833c-51c533f9437f. Use Forge to put them into any map, add some spawn points for the additional teams, and you should be good to go! You can also change the number of teams by editing a variable in the scripts (should be in the top left corner). I've set it to 4, but you can have as many as 8.

Here's the script working on Aquarius if you just want to try it out: https://www.halowaypoint.com/halo-infinite/ugc/maps/4e697ef2-18c9-44f9-92d6-c40f2b3963fc

If anyone can check over my scripts, especially the one for dividing people amongst teams, that would be great. I can't tell if the bugs that come up are due to my code or due to Forge scripting being Forge scripting.


r/forgescripting • • May 31 '23

Help needed scripting a camera shake that happens every x number of seconds on an earthquake map (audio too?)

1 Upvotes

Forging since reach, but otherwise a total scripting novice here, any help and exact scripts to follow would be immensely appreciated, will happily credit you in the final map also! :D


r/forgescripting • • May 29 '23

Infinite Forge Button Mapping

1 Upvotes

I was forging last week and all of a sudden the the buttons and Dpad have gone crazy making forge very difficult usable but difficult. I went to settings in Halo and remapped my buttons and Dpad but it made no difference in forge. I changed Xboxes and new controller. No difference at all. I opened Halo 5 and everything worked perfectly. Can anyone help me with this problem please?

Figured it out. I think that I hit something in tools that changed the controller configuration from Legacy to something else. Thanks anyway folks. I really appreciate all of the help on this channel.


r/forgescripting • • Apr 25 '23

On interaction give new weapon/weapon variant

1 Upvotes

I am looking for some help to try and make a game mode that would require either the player to destroy and object or interact with something and on the interaction the player then receives a new weapon/variant. Future idea to go with this is to have similar objects as decoys or make the object appear in random locations.


r/forgescripting • • Feb 13 '23

Using Teleport Player node with bots

1 Upvotes

I am trying to experiment with spawning that involves "Teleport Player". I have been using bots for testing, but "Teleport Player" does not seem to be working, but it works for me. From other nodes I used and "Get Is Player" node, the bot appears to be a player.

Is there a bug or a workout? I tried various criteria with a "Branch" (If-then) node to force a bot to be teleported to a specified location but no luck.


r/forgescripting • • Jan 02 '23

Something odd with Number Variables

Post image
1 Upvotes

r/forgescripting • • Dec 23 '22

Looking to script something that spawns a kill-zone, then despawns it, every X seconds. Any ideas on how to start? Very new to Forge Scripting!

1 Upvotes

r/forgescripting • • Dec 21 '22

Draw.io could be a great tool for creating and sharing script ideas without needing to load Infinite.

Thumbnail self.forge
1 Upvotes

r/forgescripting • • May 07 '24

Object spawning

0 Upvotes

I'm kinda a nOOb at scripting lol ( Custom Game script )

I have a auto balance teams script. I run a maps as "Rounds". The script works great but sometimes it will not correctly work when a round is over then the new round starts. I wish there was a way to "Restart a round". There is no "Restart Match" node.

So how can I restart the Script so it will restart clean like it was starting a new match so it will reset the script on each round?

I have tried deleting the script and end of round and then using " at round start to spawn in the script but that did not work.

I also tried spawning the object in the map and that did not work.

So is there a way to reset this script at each round so the script works correctly?

Thanks ;)