View Single Post
Author Message
TheVaskov
Member
Join Date: Sep 2021
Location: Russia
Old 04-23-2022 , 12:06   Operation cycles to find enities
Reply With Quote #1

I have an entity object that follows another object. By default, it chooses its owner
I want to run an entity search cycle in a radius by class. find_sphere_class()
it seems to me that I should use do / while-cycles or for-cycles
But I can find the correct syntax for using them. Send me some tutorial or help.

The task is as follows:
I create an NPC dog that runs after me.
If it finds another player from the enemy team in the radius, then dog should run to him and bite him to death.
Dead player will drop weaponbox, a dog takes it in her teeth and carries it to me.
but if a player is found again along the way, then dog drops the weaponbox and runs to attack.
______- update after message by Crazy


https://youtu.be/ERR6T7d_4Q0

thanks a lot !
Attached Files
File Type: sma Get Plugin or Get Source (dod_jagendog.sma - 47 views - 17.6 KB)

Last edited by TheVaskov; 04-26-2022 at 06:53.
TheVaskov is offline