I can't figure it out how to put SetTargetAI and GetTargetAI script ( Medic Cabinet and Ammo stash for example) in my map, im making a remastered Tf2 Map (and others) that i made last year.
Thing that i want to make it work.
-When Bot ran out of Ammo and or needs some Health, it goes where the Activate or Button Triggers with specific Custom ID.
(I already made a script that when entering in AreaTrigger, it presses the button without losing its behaviour, it works with all types of bot behaviours as well).
Thank you for responses if any.
Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.
New to the forum? Say hello in this topic! Also make sure to read the rules.
New to the forum? Say hello in this topic! Also make sure to read the rules.
Custom Bot Target AI Script (How?)
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
- Gurt
- Lead Programmer
- Posts: 1884
- Joined: Sun Feb 28, 2016 3:22 pm
- Title: Lead programmer
- Started SFD: Made it!
- Location: Sweden
- Gender:
- Age: 34
SetTargetAI SetTargetAIEnabled on objects allows bots to > attack < that target.
SetForcedBotTarget on a player will force it to attack the specified target.
If you want the bot to move to a specific spot you must do something similar like we did in the Joker bossfight where the boss runs to a doorway.
It's a lot of micro management to get a bot to do exactly like you want. Once they reach your desired spot you can force them to "press" a certain button using player commands.
SetForcedBotTarget on a player will force it to attack the specified target.
If you want the bot to move to a specific spot you must do something similar like we did in the Joker bossfight where the boss runs to a doorway.
It's a lot of micro management to get a bot to do exactly like you want. Once they reach your desired spot you can force them to "press" a certain button using player commands.
1 x
Gurt