Check with LUA if a player carry an objective Part ?


(ETdemin) #1

Hello

all is in the title :wink:
or how to know with LUA, the ‘carrier flag’ is set for a player ?

thank you


(acQu) #2

I haven’t looked it up yet. It may be readable, or it may simply be not.

Can you give overall context? That way, maybe, one can help better!


(Micha) #3

Silent Mod and etpro got a good lua page:
http://mygamingtalk.com/wiki/index.php/Silent_Lua
http://wolfwiki.anime.net/index.php/ETPro:Lua_Mod_API

I’m not sure but it could be this fieldname:

“ps.powerups” - an array of 16 integers for powerups. The indexes are as follows
6 - red flag, axis flag carried
7 - blue flag, allied flag carried

objectaxis = et.gentity_get ( clientnumber, ps.powerups ,6 )
objectallies = et.gentity_get ( clientnumber, ps.powerups ,7)


(ETdemin) #4

Thank you very much for your answers :wink:

And a lot of to Micha for his scripts : yeah it work nice big Thank :slight_smile:

I will try to do a bot management for when they carrry an objective part, this is why I have requested some information, thank you :wink: I am a bit crazy :wink:


(Mateos) #5

What bots are you using? Omni-Bot?

You can do it through the map bot scripts if it is restricted to few maps