Jump to content

mongui

Members
  • Posts

    5
  • Joined

  • Last visited

Details

  • Gang
    Saur

mongui's Achievements

Vic

Vic (3/54)

0

Reputation

  1. "onBotFindEnemy" event is not working , it only works when a bot is killed; is it a refreshing problem?
  2. it only works if a bot is dead , is it a refreshing problem?
  3. I have set two Teams of Bots , the event "onBotFindEnemy" of slothbot dosn't work even though the bots are shooting the enemy , but when i change my team during gameplay infront of my teammate bots , the event works and they start shooting me (which is normal because i changed my team) but the event dosn't work in other cases . what is the problem? Ps : The event "onbotwasted" works perfectly .
  4. i want to check distance between a player and all other players from the other team then start a resource if it's under 50 , it gives a bad argument error line 5 and 8
  5. hi guys , i'm new to scripting , this error keeps coming up : getteam name expected team at argument 1 got boolean function distance () local players = getElementsByType ("player") for i,p1 in ipairs(players) do local team1 = getPlayerTeam( p1 ) local name1 = getTeamName(team1) for k,p2 in ipairs(players) do local team2 = getPlayerTeam(p2) local name2 = getTeamName(team2) if ( name1 ~= name2 ) then x1,y1,z1 = getElementPosition x2,y2,z2 = getElementPosition if ( getDistanceBetweenPoints3D (x1 , y1 , z1 , x2 , y2 , z2 ) <= 50 ) then local resource = getResourceFromName (blip) startResource (resource) setTimer(stopResource (resource), 5000 , 1 ) end end end end end
×
×
  • Create New...