Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] How would you advise me to make my script run all the time to check the proximity of the players ? (

[DiscordArchive] How would you advise me to make my script run all the time to check the proximity of the players ? (

[DiscordArchive] How would you advise me to make my script run all the time to check the proximity of the players ? (

rektbyfaith
Administrator
0
01-14-2023, 09:46 PM
#1
Archived author: William Von Kha • Posted: 2023-01-14T21:46:25.338000+00:00
Original source

How would you advise me to make my script run all the time to check the proximity of the players ? (I need to have the Player class) ... Would I test with IOSTREAM ?
rektbyfaith
01-14-2023, 09:46 PM #1

Archived author: William Von Kha • Posted: 2023-01-14T21:46:25.338000+00:00
Original source

How would you advise me to make my script run all the time to check the proximity of the players ? (I need to have the Player class) ... Would I test with IOSTREAM ?

rektbyfaith
Administrator
0
01-14-2023, 09:50 PM
#2
Archived author: Tea • Posted: 2023-01-14T21:50:55.788000+00:00
Original source

write a WorldScript and override OnUpdate
rektbyfaith
01-14-2023, 09:50 PM #2

Archived author: Tea • Posted: 2023-01-14T21:50:55.788000+00:00
Original source

write a WorldScript and override OnUpdate

rektbyfaith
Administrator
0
01-14-2023, 09:51 PM
#3
Archived author: Tea • Posted: 2023-01-14T21:51:16.559000+00:00
Original source

and probably throttle your code so it only runs once every few seconds instead of on every update
rektbyfaith
01-14-2023, 09:51 PM #3

Archived author: Tea • Posted: 2023-01-14T21:51:16.559000+00:00
Original source

and probably throttle your code so it only runs once every few seconds instead of on every update

rektbyfaith
Administrator
0
01-14-2023, 10:02 PM
#4
Archived author: William Von Kha • Posted: 2023-01-14T22:02:35.438000+00:00
Original source

All right! Do you have an example or a place in the code to know how to use WorldScript. I've never done
rektbyfaith
01-14-2023, 10:02 PM #4

Archived author: William Von Kha • Posted: 2023-01-14T22:02:35.438000+00:00
Original source

All right! Do you have an example or a place in the code to know how to use WorldScript. I've never done

rektbyfaith
Administrator
0
01-14-2023, 10:02 PM
#5
Archived author: Tea • Posted: 2023-01-14T22:02:54.548000+00:00
Original source

no. i do not
rektbyfaith
01-14-2023, 10:02 PM #5

Archived author: Tea • Posted: 2023-01-14T22:02:54.548000+00:00
Original source

no. i do not

rektbyfaith
Administrator
0
01-14-2023, 10:03 PM
#6
Archived author: Tea • Posted: 2023-01-14T22:03:15.534000+00:00
Original source

WorldScript is not used for any blizzlike content, its all for custom scripters to use
rektbyfaith
01-14-2023, 10:03 PM #6

Archived author: Tea • Posted: 2023-01-14T22:03:15.534000+00:00
Original source

WorldScript is not used for any blizzlike content, its all for custom scripters to use

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)