Jump to content

Home

what's wrong with this script?


winner_rex

Recommended Posts

I want to have an r2 unit go to a navgoal

 

//Generated by BehavEd

 

rem ( "r2 to console" );

 

affect ( "R2", /*@AFFECT_TYPE*/ FLUSH )

{

set ( /*@SET_TYPES*/ "SET_WALKING", /*@BOOL_TYPES*/ "true" );

}

 

 

task ( "r2move" )

{

set ( /*@SET_TYPES*/ "SET_NAVGOAL", "console" );

}

 

dowait ( "r2move" );

 

 

Whenever I run the map the r2 unit doesnt move.

 

why why why?

Link to comment
Share on other sites

Well, considering the fact that you have the affect command in use, your script seems to be external to the R2 unit. But if you look carefully at your script, the affect part does not include the movement command. Try moving the task command definition before the affect and dowait in the affect (after set_walking).

 

I'm not used to observing scripts outside BehaveEd, but I hope I'm interpreting this right.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...