You must be logged in to do that.

EntitySetWanderDelay

EntitySetWanderDelay
void EntitySetWanderDelay(int entity, int delay)

Documentation

This function changes the specified entity's wander delay to a new value.

The wander delay is how long the entity will wait before wandering around again.

The value specified is in 1/100ths of a second.

This function is a part of a small family of Wander-mode effecting Entity functions, which includes: EntitySetWanderDelay, EntitySetWanderRect, EntitySetWanderZone, and EntityStop.

Example Usage

//This sets entity 3 on the map to take a wander-step twice
//   a second (which is kinda fast)
EntitySetWanderDelay( 3, 50 );

//This sets entity 42 on the map to take a wander-step once
//   every 6 seconds (which is kinda slow)
EntitySetWanderDelay( 42, 600 );
Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Doc Nav

Your docs
View All Docs

If you log in, you can edit the documentation, or create your own documents and tutorials!

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.