Пример #1
0
JSValueRef js_obj_motion_vector_turn_to_object_func(JSContextRef cx,JSObjectRef func,JSObjectRef j_obj,size_t argc,const JSValueRef argv[],JSValueRef *exception)
{
    char			err_str[256];
    obj_type		*obj;

    if (!script_check_param_count(cx,func,argc,1,exception)) return(script_null_to_value(cx));

    obj=object_get_attach(j_obj);
    if (!object_auto_walk_object_setup(obj,script_value_to_int(cx,argv[0]),TRUE,err_str)) {
        *exception=script_create_exception(cx,err_str);
    }

    return(script_null_to_value(cx));
}
Пример #2
0
bool object_auto_walk_player_setup(obj_type *obj,bool turn_only)
{
	return(object_auto_walk_object_setup(obj,server.player_obj_uid,turn_only));
}