#Fixing dire vision [SOLVED]

1 messages · Page 1 of 1 (latest)

lusty remnant
#

I added a bot hero with the following command:

GameRules:AddBotPlayerWithEntityScript("npc_dota_hero_water_boss","Lord of the Depths", DOTA_TEAM_BADGUYS, "final_boss_guard_ai.lua",false)

The hero was successfully given to pink, I think

However, creeps/units spawned for the dire team still fail to have any vision, and require the -allvision command to react to being attacked.

What did I do wrong or have missed out on?

elfin veldt
#

Why you used that api? If you wish to setup ai for your creeps/bosses/etc its better to use modfiiers/timers/"vscripts" key in unit kv. Even valve in their examples using "vscripts" key for enemies ai

lusty remnant
#

Was looking for an api to create a bot hero, I don't really need it to have any AI

elfin veldt
#

Can't you just use CreateUnitByName for that purpose?

lusty remnant
#

I'll try

#

It doesn't fix the vision bug even though I created 2 heroes with that function

#

oh maybe I didn't give it to a specific player, that's why, let me see....

lusty remnant
#

how do I pass in a playerID int othe argument for createunitbyname

lusty remnant
#

Okay I found out that when I spawn on the dire side, I can't attack the towers unless there's -allvision enabled, what.

eternal bone
#

Did you declare vision radius in kv?

lusty remnant
#

Should be 1800/1800, when I play as Axe on radiant I cna hit dire units, when I play as Axe on dire I can't see radiant units

#

is this a dev mode only bug or something

eternal bone
eternal bone
lusty remnant
#

in hero selection I pick axe after selecting dire team, that can still end up spawning a unit for spectator team?

eternal bone
#

Can you send a code snippet where you spawn unit?

lusty remnant
#

strictly speaking this is all the hardcoded stuff. I put a info_player_start_badguys entity, in team selection I go to dire team, I pick the hero axe, I spawn in, there's no vision

#

that or you're asking something that I'm too green to be able to give you a proper answer

fallen lynx
#

Whats the number of teams in your addoninfo? Do you have basic entities prefab on your map?

fallen lynx
lusty remnant
fallen lynx
#

That's the literal name of the prefab: basic_entities. It contains all entities needed for the map to function properly.

lusty remnant
#

Did not help, I recompiled map after putting in the prefab basic_entities

Edit: Disabling fog of war entirely in settings doesn't help either
Edit2: When I create neutrals, -allvision doesn't reveal them either on the dire side. Radiant units can still see them and attack them though

lusty remnant
#

Solved:
Dire has no vision because addoninfo.txt in the root addon folder only had TeamCount = 1, changed it to 2 and Dire now has vision

#

Fixing dire vision [SOLVED]

sterile grail
#

yeah basically means they were natural creeps/heroes

fallen lynx
lusty remnant